Skip to content

Commit 3c9444e

Browse files
fix: only show send/receive buttons when there are wallets in the app
1 parent fac499b commit 3c9444e

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

apps/mobile/src/features/account/accounts-widget.tsx

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,32 +56,34 @@ export function AccountsWidget() {
5656
)}
5757
</Box>
5858
)}
59-
<Box my="3" px="5" flexDirection="row" gap="2">
60-
<ButtonV2
61-
onPress={() => {
62-
sendSheetRef.current?.present();
63-
}}
64-
minWidth={86}
65-
size="sm"
66-
buttonState="default"
67-
title={t({
68-
id: 'general.send',
69-
message: `Send`,
70-
})}
71-
/>
72-
<ButtonV2
73-
onPress={() => {
74-
receiveSheetRef.current?.present();
75-
}}
76-
minWidth={86}
77-
size="sm"
78-
buttonState="outline"
79-
title={t({
80-
id: 'general.receive',
81-
message: `Receive`,
82-
})}
83-
/>
84-
</Box>
59+
{wallets.hasWallets && (
60+
<Box my="3" px="5" flexDirection="row" gap="2">
61+
<ButtonV2
62+
onPress={() => {
63+
sendSheetRef.current?.present();
64+
}}
65+
minWidth={86}
66+
size="sm"
67+
buttonState="default"
68+
title={t({
69+
id: 'general.send',
70+
message: `Send`,
71+
})}
72+
/>
73+
<ButtonV2
74+
onPress={() => {
75+
receiveSheetRef.current?.present();
76+
}}
77+
minWidth={86}
78+
size="sm"
79+
buttonState="outline"
80+
title={t({
81+
id: 'general.receive',
82+
message: `Receive`,
83+
})}
84+
/>
85+
</Box>
86+
)}
8587
</Box>
8688
<Widget.Body>
8789
<ScrollView

0 commit comments

Comments
 (0)