Skip to content

Commit fdb0829

Browse files
dkackmanCopilot
andauthored
Update src/components/WalletSwitcher.tsx
Co-authored-by: Copilot <[email protected]>
1 parent 7daf54d commit fdb0829

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/components/WalletSwitcher.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,7 @@ export function WalletSwitcher({ isCollapsed, logout }: WalletSwitcherProps) {
8484
navigate('/wallet');
8585
} catch (error) {
8686
setIsSwitching(false);
87-
if (
88-
typeof error === 'object' &&
89-
error !== null &&
90-
'kind' in error &&
91-
error.kind === 'database_migration'
92-
) {
93-
// Handle migration error if needed
94-
addError(error as CustomError);
95-
} else {
96-
addError(error as CustomError);
97-
}
87+
addError(error as CustomError);
9888
navigate('/');
9989
}
10090
};

0 commit comments

Comments
 (0)