Skip to content

Commit

Permalink
fix: remove unused code when reimport account
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenQian committed Oct 18, 2024
1 parent 9fecd55 commit 242008d
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions src/features/keystone/SelectKeystoneAccountsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,15 @@ const SelectKeystoneAccountsScreen = () => {

const onNext = useCallback(() => {
storageSelectedAccounts()
if (hasAccounts) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
navigation.replace('TabBarNavigator', {
screen: 'Home',
params: {
screen: 'KeystoneAccountAssignScreen',
},
})
} else {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
navigation.replace('OnboardingNavigator', {
screen: 'KeystoneNavigator',
params: {
screen: 'KeystoneAccountAssignScreen',
},
})
}
}, [hasAccounts, navigation, selected])
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
navigation.replace('OnboardingNavigator', {
screen: 'KeystoneNavigator',
params: {
screen: 'KeystoneAccountAssignScreen',
},
})
}, [navigation, selected])

const fetchBalance = async (publicKey: string) => {
if (connection) {
Expand Down

0 comments on commit 242008d

Please sign in to comment.