Skip to content

Commit 1462178

Browse files
Hide three-dot menu for locked bank accounts in Wallet
When a bank account is in a locked state, the three-dot menu should not appear since there are no useful menu actions available. This prevents the empty popup from showing and the dual navigation/popup behavior. Co-authored-by: Shridhar Goel <ShridharGoel@users.noreply.github.com>
1 parent 03023c1 commit 1462178

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/settings/Wallet/PaymentMethodListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function PaymentMethodListItem({item, shouldShowDefaultBadge, threeDotsMenuItems
114114
const threeDotsMenuRef = useRef<{hidePopoverMenu: () => void; isPopupMenuVisible: boolean; onThreeDotsPress: () => void}>(null);
115115
const isInSetupState = isAccountInSetupState(item);
116116
const isInLockedState = isBusinessBankAccountLocked(item);
117-
const showThreeDotsMenu = item.shouldShowThreeDotsMenu !== false && !!threeDotsMenuItems;
117+
const showThreeDotsMenu = item.shouldShowThreeDotsMenu !== false && !!threeDotsMenuItems && !isInLockedState;
118118

119119
// Check if this is a Chase personal bank account connected via Plaid
120120
const isChaseAccountConnectedViaPlaid =

0 commit comments

Comments
 (0)