1
0
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:
Alex Donesky 2022-08-02 20:06:11 -05:00 committed by GitHub
parent 7e01dbca96
commit 713399cb88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -730,7 +730,7 @@ export function getIsBuyableCoinbasePayChain(state) {
}
export function getNativeCurrencyImage(state) {
const nativeCurrency = getNativeCurrency(state).toUpperCase();
const nativeCurrency = getNativeCurrency(state)?.toUpperCase();
return NATIVE_CURRENCY_TOKEN_IMAGE_MAP[nativeCurrency];
}