Skip to content

Commit

Permalink
fix: after loading of guardian validation, the login panel does not i…
Browse files Browse the repository at this point in the history
…mmediately disappear for v1
  • Loading branch information
aelf-lxy committed Sep 12, 2024
1 parent 44d9f7a commit 3da1087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/login/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aelf-web-login",
"version": "2.1.6",
"version": "2.1.7",
"main": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
Expand Down
3 changes: 2 additions & 1 deletion packages/login/src/wallets/portkey/usePortkey/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ export function usePortkey({
setPreparing(true);
setLoading(true);
try {
setApproveModalInTG(false);
setModalOpen(false);
localStorage.setItem(PORTKEY_ORIGIN_CHAIN_ID_KEY, didWalletInfo.chainId);
try {
if (didWalletInfo.chainId !== chainId) {
Expand Down Expand Up @@ -273,7 +275,6 @@ export function usePortkey({
// debugger;
setLoading(false);
setPreparing(false);
setApproveModalInTG(false);
}
},
[appName, chainId, eventEmitter, setLoading, setLoginError, setLoginState, setApproveModalInTG, setWalletType],
Expand Down

0 comments on commit 3da1087

Please sign in to comment.