From 3e79a742c4500de27a0064518836db85fbe04f36 Mon Sep 17 00:00:00 2001 From: Daniel <80175477+dan437@users.noreply.github.com> Date: Tue, 20 Jun 2023 18:57:14 +0200 Subject: [PATCH] Only show a Swaps notification on a supported chain (#19673) --- ui/selectors/selectors.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index c6b736878..675b52108 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -971,6 +971,7 @@ function getAllowedAnnouncementIds(state) { const currentlyUsingLedgerLive = getLedgerTransportType(state) === LedgerTransportTypes.live; const isFirefox = window.navigator.userAgent.includes('Firefox'); + const isSwapsChain = getIsSwapsChain(state); return { 1: false, @@ -993,7 +994,7 @@ function getAllowedAnnouncementIds(state) { 18: true, 19: true, 20: currentKeyringIsLedger && isFirefox, - 21: true, + 21: isSwapsChain, }; }