Skip to content

Commit

Permalink
require approval before confirm modal shows
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Sep 11, 2024
1 parent 194799b commit 1112571
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export const BridgeTransactionButton = ({
pendingLabel: t('Switching chains'),
}
} else if (
isApproved &&
hasValidQuote &&
hasQuoteOutputChanged &&
hasSameSelectionsAsPreviousQuote &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const baseClassNames = {
disabled: 'disabled:opacity-50 disabled:cursor-not-allowed',
background: 'bg-zinc-400 dark:bg-bgLight',
gradient: 'enabled:bg-gradient-to-r',
transition: 'transition',
}

export const TransactionButton = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { convertUuidToUnix } from '@/utils/convertUuidToUnix'
export const useStaleQuoteUpdater = (
quote: BridgeQuote,
refreshQuoteCallback: () => Promise<void>,
// isQuoteLoading: boolean,
// isWalletPending: boolean,
isActive: boolean,
staleTimeout: number = 15000, // in ms
autoRefreshDuration: number = 30000 // in ms
Expand Down

0 comments on commit 1112571

Please sign in to comment.