Skip to content

Commit 480fb4e

Browse files
committed
[SDK] Fix UI issue when assetTabs is set to an empty array (#5517)
CNCT-2476
1 parent d86c6ef commit 480fb4e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/pink-ducks-flash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fix UI issue when assetTabs is set to an empty array

packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ function DetailsModal(props: {
660660

661661
{/* View Funds */}
662662
{/* Hide the View Funds button if the assetTabs props is set to an empty array */}
663-
{(props.assetTabs === undefined || props.assetTabs.length) && (
663+
{(props.assetTabs === undefined || props.assetTabs.length > 0) && (
664664
<MenuButton
665665
onClick={() => {
666666
setScreen("view-assets");

0 commit comments

Comments
 (0)