mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
add access protection to the getNativeCurrencyImage selector in case it is the source of a mysterious bug on firefox (#15425)
This commit is contained in:
parent
7e01dbca96
commit
713399cb88
@ -730,7 +730,7 @@ export function getIsBuyableCoinbasePayChain(state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getNativeCurrencyImage(state) {
|
export function getNativeCurrencyImage(state) {
|
||||||
const nativeCurrency = getNativeCurrency(state).toUpperCase();
|
const nativeCurrency = getNativeCurrency(state)?.toUpperCase();
|
||||||
return NATIVE_CURRENCY_TOKEN_IMAGE_MAP[nativeCurrency];
|
return NATIVE_CURRENCY_TOKEN_IMAGE_MAP[nativeCurrency];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user