File tree Expand file tree Collapse file tree
app/components/Views/confirmations/hooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ import { useTransactionMetadataRequest } from './transactions/useTransactionMeta
77import { useHasInsufficientBalance } from './useHasInsufficientBalance' ;
88
99export function useAutomaticGasFeeTokenSelect ( ) {
10- const { isSmartTransaction } = useIsGaslessSupported ( ) ;
10+ const { isSupported : isGaslessSupported , isSmartTransaction } =
11+ useIsGaslessSupported ( ) ;
1112 const { hasInsufficientBalance } = useHasInsufficientBalance ( ) ;
1213 const transactionMeta =
1314 ( useTransactionMetadataRequest ( ) as TransactionMeta ) ??
@@ -35,6 +36,7 @@ export function useAutomaticGasFeeTokenSelect() {
3536
3637 const shouldSelect =
3738 ! checked &&
39+ isGaslessSupported &&
3840 hasInsufficientBalance &&
3941 ! selectedGasFeeToken &&
4042 Boolean ( firstGasFeeTokenAddress ) ;
You can’t perform that action at this time.
0 commit comments