Unverified Commit 9f1fb537 authored by Hanwen Cheng's avatar Hanwen Cheng Committed by GitHub
Browse files

chore: reset current identity in async way (#634)

parent 77195601
Pipeline #94970 failed with stages
in 52 seconds
......@@ -92,10 +92,10 @@ function IdentitiesSwitch({
}
};
const onLegacyListClicked = async (): Promise<void> => {
await accounts.resetCurrentIdentity();
const onLegacyListClicked = (): void => {
setVisible(false);
navigateToLegacyAccountList(navigation);
accounts.resetCurrentIdentity();
};
const renderIdentityOptions = (identity: Identity): React.ReactElement => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment