mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Only show a Swaps notification on a supported chain (#19673)
This commit is contained in:
parent
c6b938a89c
commit
3e79a742c4
@ -971,6 +971,7 @@ function getAllowedAnnouncementIds(state) {
|
|||||||
const currentlyUsingLedgerLive =
|
const currentlyUsingLedgerLive =
|
||||||
getLedgerTransportType(state) === LedgerTransportTypes.live;
|
getLedgerTransportType(state) === LedgerTransportTypes.live;
|
||||||
const isFirefox = window.navigator.userAgent.includes('Firefox');
|
const isFirefox = window.navigator.userAgent.includes('Firefox');
|
||||||
|
const isSwapsChain = getIsSwapsChain(state);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
1: false,
|
1: false,
|
||||||
@ -993,7 +994,7 @@ function getAllowedAnnouncementIds(state) {
|
|||||||
18: true,
|
18: true,
|
||||||
19: true,
|
19: true,
|
||||||
20: currentKeyringIsLedger && isFirefox,
|
20: currentKeyringIsLedger && isFirefox,
|
||||||
21: true,
|
21: isSwapsChain,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user