Skip to content

Commit

Permalink
https://community.anytype.io/t/infinite-loop-while-entering-pin-code/…
Browse files Browse the repository at this point in the history
…20276
  • Loading branch information
ra3orblade committed Apr 26, 2024
1 parent c7ac0dd commit 5b453e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ts/store/common.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { action, computed, intercept, makeObservable, observable, set } from 'mobx';
import $ from 'jquery';
import { I, M, Storage, UtilCommon, UtilObject, Renderer } from 'Lib';
import { I, M, Storage, UtilCommon, UtilObject, Renderer, UtilRouter } from 'Lib';
import { dbStore } from 'Store';
import Constant from 'json/constant.json';

Expand Down Expand Up @@ -394,6 +394,12 @@ class CommonStore {
};

redirectSet (v: string) {
const param = UtilRouter.getParam(v);

if ((param.page == 'auth') && (param.action == 'pin-check')) {
return;
};

this.redirect = v;
};

Expand Down

0 comments on commit 5b453e3

Please sign in to comment.