Skip to content

Commit

Permalink
fix: resolve pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vetalcore committed Oct 31, 2024
1 parent 83e4392 commit 64ad262
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export const DropdownMenuOverlay: VFC<Props> = ({
[isPopup, walletType]
);

const showAddSharedWalletLink = sharedWalletsEnabled && !isSharedWallet && !isHardwareWallet;

return (
<Menu {...props} className={styles.menuOverlay} data-testid="header-menu">
{currentSection === Sections.Main && (
Expand All @@ -88,7 +90,7 @@ export const DropdownMenuOverlay: VFC<Props> = ({
{process.env.USE_MULTI_WALLET === 'true' && (
<AddNewWalletLink isPopup={isPopup} sendAnalyticsEvent={sendAnalyticsEvent} />
)}
{sharedWalletsEnabled && !isSharedWallet && !isHardwareWallet && <AddSharedWalletLink isPopup={isPopup} />}
{showAddSharedWalletLink && <AddSharedWalletLink isPopup={isPopup} />}
<AddressBookLink />
<SettingsLink />
<Separator />
Expand Down

0 comments on commit 64ad262

Please sign in to comment.