Skip to content

Commit

Permalink
🚑️ Fix Keplr stuck in iscn-ar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Mar 29, 2022
1 parent 420c22f commit 3f49be1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pages/in/widget/iscn-ar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ export default {
const iscnIdString = encodeURIComponent(iscnId);
window.location.href = `https://app.${IS_TESTNET ? 'rinkeby.' : ''}like.co/view/${iscnIdString}?layout=popup`;
},
handleAutheticate() {
async handleAutheticate() {
if (this.getUserIsRegistered) {
if (this.getAuthCoreNeedReAuth) {
this.setReAuthDialogShow(true);
Expand All @@ -705,13 +705,15 @@ export default {
} else if (this.isMobileClient) {
this.popupAuthDialogInPlace({ route: this.$route, isSignIn: true });
return true;
} else {
await this.connectKeplr();
}
return false;
},
async onClickContinueRegister({ forceKeplr = false } = {}) {
if (!this.isUsingKeplr) {
if (!forceKeplr) {
if (this.handleAutheticate()) return;
if (await this.handleAutheticate()) return;
} else {
await this.connectKeplr();
}
Expand All @@ -720,7 +722,7 @@ export default {
},
async onClickBeginRegister({ forceKeplr = false } = {}) {
if (!forceKeplr) {
if (this.handleAutheticate()) return;
if (await this.handleAutheticate()) return;
} else {
await this.connectKeplr();
}
Expand Down

0 comments on commit 3f49be1

Please sign in to comment.