diff --git a/packages/suite/src/storage/migrations/index.ts b/packages/suite/src/storage/migrations/index.ts index c1b5f422cce..928fc788a38 100644 --- a/packages/suite/src/storage/migrations/index.ts +++ b/packages/suite/src/storage/migrations/index.ts @@ -907,7 +907,7 @@ export const migrate: OnUpgradeFunc = async ( await updateAll(transaction, 'suiteSettings', suiteSettings => { if ( // @ts-expect-error - typeof suiteSettings.evmSettings.confirmExplanationModalClosed?.matic == 'boolean' + typeof suiteSettings.evmSettings?.confirmExplanationModalClosed?.matic == 'boolean' ) { suiteSettings.evmSettings.confirmExplanationModalClosed.pol = // @ts-expect-error @@ -918,7 +918,7 @@ export const migrate: OnUpgradeFunc = async ( if ( // @ts-expect-error - typeof suiteSettings.evmSettings.explanationBannerClosed?.matic == 'boolean' + typeof suiteSettings.evmSettings?.explanationBannerClosed?.matic == 'boolean' ) { suiteSettings.evmSettings.explanationBannerClosed.pol = // @ts-expect-error