Skip to content

Commit

Permalink
fix: quote update after user connected wallet via bridge action button (
Browse files Browse the repository at this point in the history
#898)

* fix: make quote query dependent on block

* fix: update quote after user connected wallet

* fixup
  • Loading branch information
dohaki authored Nov 2, 2023
1 parent 2fc157d commit cbc0db0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/Bridge/hooks/useBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ export function useBridge() {
useEffect(() => {
if (shouldUpdateQuote && bridgeAction.isButtonActionLoading) {
setShouldUpdateQuote(false);
} else if (bridgeAction.didActionError && !shouldUpdateQuote) {
} else if (
(bridgeAction.didActionError || !bridgeAction.isButtonActionLoading) &&
!shouldUpdateQuote
) {
setShouldUpdateQuote(true);
}
}, [
Expand Down

2 comments on commit cbc0db0

@vercel
Copy link

@vercel vercel bot commented on cbc0db0 Nov 2, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

goerli-frontend-v2 – ./

goerli-frontend-v2-git-master-uma.vercel.app
goerli-frontend-v2-uma.vercel.app
goerli-frontend-v2.vercel.app

@vercel
Copy link

@vercel vercel bot commented on cbc0db0 Nov 2, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.