Skip to content

Commit

Permalink
fix: crash on wallet connection page
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Sep 1, 2024
1 parent 650377f commit ad9ef7e
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions pages/settings/wallets/WalletConnection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,25 +93,20 @@ export function WalletConnection() {
<>
<Screen
title="Setup Wallet Connection"
right={() => {
return (<>
{(walletIdWithConnection !== -1
? () => (
<Pressable
onPress={() => {
useAppStore
.getState()
.setSelectedWalletId(walletIdWithConnection);
router.replace("/");
}}
>
<X className="text-foreground" />
</Pressable>
)
: undefined)};

</>)
}}
right={() =>
walletIdWithConnection !== -1 ? (
<Pressable
onPress={() => {
useAppStore
.getState()
.setSelectedWalletId(walletIdWithConnection);
router.replace("/");
}}
>
<X className="text-foreground" />
</Pressable>
) : null
}
/>
{hasConnection && (
<View className="flex-1 p-3">
Expand Down

0 comments on commit ad9ef7e

Please sign in to comment.