Skip to content

Commit

Permalink
fix(mobile): Obtain proof token when biometry is unlocked
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii committed Feb 8, 2024
1 parent a6dd2a5 commit a7824eb
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const AccessConfirmation: FC = () => {
}
}
},
[dispatch, isBiometryFailed, isUnlock, triggerError, wallet],
[dispatch, isBiometryFailed, isUnlock, obtainTonProof, triggerError, wallet],
);

const handleBiometry = useCallback(() => {
Expand All @@ -175,6 +175,9 @@ export const AccessConfirmation: FC = () => {
setTimeout(async () => {
// Lock screen
if (isUnlock) {
const keyPair = await (unlockedVault as any).getKeyPair();
// createTronAddress(privateKey);
obtainTonProof(keyPair);
dispatch(mainActions.setUnlocked(true));
} else {
goBack();
Expand All @@ -187,7 +190,7 @@ export const AccessConfirmation: FC = () => {
setBiometryFailed(true);
triggerError();
});
}, [dispatch, isUnlock, triggerError, wallet]);
}, [dispatch, isUnlock, obtainTonProof, triggerError, wallet]);

useEffect(() => {
if (params.withoutBiometryOnOpen) {
Expand Down

0 comments on commit a7824eb

Please sign in to comment.