Skip to content

Commit

Permalink
modify error
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Jul 31, 2024
1 parent 70f1857 commit 09c2ef6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/scripts/migrations/120.2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ function transformState(state: Record<string, unknown>) {
}

if (!isObject(state.SelectedNetworkController)) {
global.sentry?.captureException?.(
new Error(
`state.SelectedNetworkController is type: ${typeof state.SelectedNetworkController}`,
),
console.error(
`Unexpected state encountered during migration version ${version}: state.SelectedNetworkController is type: ${typeof state.SelectedNetworkController}`,
);
state.SelectedNetworkController = { domains: {} };
} else if (hasProperty(state.SelectedNetworkController, 'perDomainNetwork')) {
Expand Down

0 comments on commit 09c2ef6

Please sign in to comment.