Skip to content

Commit

Permalink
APP-1500 (#5763)
Browse files Browse the repository at this point in the history
* fix

* optional chaining just in case

* allow message signing tx w/o loaded balance/gas
  • Loading branch information
benisgold authored May 23, 2024
1 parent 96a92ad commit 29ed2fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/screens/SignTransactionSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ export const SignTransactionSheet = () => {

const expandedCardBottomInset = EXPANDED_CARD_BOTTOM_INSET + (isMessageRequest ? 0 : GAS_BUTTON_SPACE);

const canPressConfirm = isMessageRequest || (!!walletBalance?.isLoaded && !!currentNetwork && !!selectedGasFee?.gasFee?.estimatedFee);

return (
// @ts-expect-error Property 'children' does not exist on type
<PanGestureHandler enabled={IS_IOS}>
Expand Down Expand Up @@ -950,6 +952,7 @@ export const SignTransactionSheet = () => {
}
newShadows
onPress={submitFn}
disabled={!canPressConfirm}
size="big"
weight="heavy"
{...((simulationError || (simulationScanResult && simulationScanResult !== TransactionScanResultType.Ok)) && {
Expand Down

0 comments on commit 29ed2fc

Please sign in to comment.