1
0
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:
Alex Donesky 2022-08-02 20:06:11 -05:00 committed by Dan J Miller
parent 50f8be1673
commit 47ae0def78

View File

@ -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];
} }