Skip to content

Commit

Permalink
Handle identification results that need to reinizialize the application
Browse files Browse the repository at this point in the history
  • Loading branch information
francescopersico committed Oct 15, 2018
1 parent c1a9d95 commit 9616734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/sagas/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function* initializeApplicationSaga(): IterableIterator<Effect> {
const identificationResult: SagaCallReturnType<
typeof startAndReturnIdentificationResult
> = yield call(startAndReturnIdentificationResult, storedPin);
if (identificationResult !== IdentificationResult.success) {
if (identificationResult === IdentificationResult.pinreset) {
// If we are here the user had chosen to reset the PIN
yield put(startApplicationInitialization());
return;
Expand Down

0 comments on commit 9616734

Please sign in to comment.