Skip to content

Commit

Permalink
fix(suite): migration-test
Browse files Browse the repository at this point in the history
  • Loading branch information
STew790 authored and tomasklim committed Oct 1, 2024
1 parent a747293 commit 2187dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/suite/src/storage/migrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ export const migrate: OnUpgradeFunc<SuiteDBSchema> = 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
Expand All @@ -918,7 +918,7 @@ export const migrate: OnUpgradeFunc<SuiteDBSchema> = async (

if (
// @ts-expect-error
typeof suiteSettings.evmSettings.explanationBannerClosed?.matic == 'boolean'
typeof suiteSettings.evmSettings?.explanationBannerClosed?.matic == 'boolean'
) {
suiteSettings.evmSettings.explanationBannerClosed.pol =
// @ts-expect-error
Expand Down

0 comments on commit 2187dc0

Please sign in to comment.