Skip to content

Commit

Permalink
Feature/face auth first mining (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-hades authored Oct 13, 2023
1 parent 3170d87 commit c67577b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/store/modules/Tokenomics/sagas/startMiningSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,21 @@ export function* startMiningSessionSaga(
const authConfig: ReturnType<typeof authConfigSelector> = yield select(
authConfigSelector,
);
if (emotionsAuthStatus !== 'SUCCESS' && authConfig?.['face-auth']?.enabled) {
const user: ReturnType<typeof unsafeUserSelector> = yield select(
unsafeUserSelector,
);
if (
emotionsAuthStatus !== 'SUCCESS' &&
authConfig?.['face-auth']?.enabled &&
!!user?.clientData?.rate?.firstMiningDate // allowing to mine 1st time without face recognition
) {
yield removeScreenByName('Tooltip');
navigate({
name: 'FaceRecognition',
params: undefined,
});
return;
}
const user: ReturnType<typeof unsafeUserSelector> = yield select(
unsafeUserSelector,
);

const tapToMineActionType: ReturnType<typeof tapToMineActionTypeSelector> =
yield select(tapToMineActionTypeSelector);
Expand Down

0 comments on commit c67577b

Please sign in to comment.