Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Use QuillContext in Confirm dialog #264

Merged
merged 1 commit into from
Jul 17, 2022
Merged

Conversation

voltrevo
Copy link
Collaborator

@voltrevo voltrevo commented Jul 12, 2022

What is this PR doing?

See title. This fixes the usage of any and also makes future development of the confirm dialog (eg showing currency conversion) easier because we have access to our stuff.

How can these changes be manually tested?

Check the confirm dialog still works, eg by sending eth within the extension.

Does this PR resolve or contribute to any issues?

Nope.

Checklist

  • I have manually tested these changes
  • Post a link to the PR in the group chat

Guidelines

  • If your PR is not ready, mark it as a draft
  • The resolve conversation button is for reviewers, not authors
    • (But add a 'done' comment or similar)

@github-actions github-actions bot added the extension Browser extension related label Jul 12, 2022
const tx = data.transactions.value.outgoing.find(
(t: any) => t.id === txid,
);
setActions(tx.actions);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If tx was not found this would have thrown an error. This is now handled more gracefully as <>Error: Tx not found</>.

const fetchTx = async () => {
const data = await storage.local.get('transactions');
const tx = data.transactions.value.outgoing.find(
(t: any) => t.id === txid,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use of any here is what really prompted this. Trying to clean up all our linting issues.

@voltrevo voltrevo marked this pull request as ready for review July 12, 2022 01:55
@voltrevo voltrevo mentioned this pull request Jul 12, 2022
2 tasks
@kautukkundan kautukkundan merged commit a2bd416 into main Jul 17, 2022
@kautukkundan kautukkundan deleted the use-quill-in-confirm branch July 17, 2022 18:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
extension Browser extension related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants