Skip to content

Commit

Permalink
prevent modal rendering if not snap notification
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalik88 committed Dec 5, 2024
1 parent 8dc2243 commit 84bf09c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ export const NotificationDetailButton = ({

return (
<>
<SnapLinkWarning isOpen={isOpen} onClose={handleModalClose} url={href} />
{notification.type === TRIGGER_TYPES.SNAP && (
<SnapLinkWarning
isOpen={isOpen}
onClose={handleModalClose}
url={href}
/>
)}
<Button
key={id}
href={!isMetaMaskUrl && href ? href : undefined}
Expand Down

0 comments on commit 84bf09c

Please sign in to comment.