Skip to content

Commit 5bca271

Browse files
walmatibrahimtaveras00
authored andcommitted
fix buy button being disabled (#6429)
* fix buy button being disabled * Delete android/.project * idk * mv .prjoect
1 parent 935e32e commit 5bca271

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/screens/SignTransactionSheet.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,12 @@ export const SignTransactionSheet = () => {
524524
return !isAuthorizing; // Only check authorization state for message requests
525525
}
526526

527-
return !isAuthorizing && isBalanceEnough && !!chainId && !!selectedGasFee?.gasFee?.estimatedFee;
527+
// We navigate to add cash sheet to top up balance so default this to true
528+
if (!isBalanceEnough) {
529+
return true;
530+
}
531+
532+
return !isAuthorizing && !!chainId && !!selectedGasFee?.gasFee?.estimatedFee;
528533
}, [isAuthorizing, isMessageRequest, isBalanceEnough, chainId, selectedGasFee?.gasFee?.estimatedFee]);
529534

530535
const primaryActionButtonLabel = useMemo(() => {

0 commit comments

Comments
 (0)