mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-10-22 19:26:13 +02: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
50f8be1673
commit
47ae0def78
@ -725,7 +725,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…
Reference in New Issue
Block a user