diff --git a/ui/helpers/utils/build-types.js b/ui/helpers/utils/build-types.js index d6ec658f8..37b4c139d 100644 --- a/ui/helpers/utils/build-types.js +++ b/ui/helpers/utils/build-types.js @@ -20,7 +20,10 @@ export function isBeta() { // the current metamask version (i.e. main, beta, etc.) export function getBuildSpecificAsset(assetName) { const buildType = process.env.METAMASK_BUILD_TYPE; - if (!assetList[buildType]?.[assetName]) { + if ( + !assetList[buildType] || + !Object.keys(assetList[buildType]).includes(assetName) + ) { console.warn( `Cannot find asset for build ${buildType}: ${assetName}, returning main build asset`, );