From c9b17d19384dd520d127039bcdb2bb1f751b5345 Mon Sep 17 00:00:00 2001 From: Francesco Persico Date: Mon, 15 Oct 2018 17:45:11 +0200 Subject: [PATCH] Handle identification results that need to reinizialize the application --- ts/sagas/startup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/sagas/startup.ts b/ts/sagas/startup.ts index d56d8c5a7f6..fa397008841 100644 --- a/ts/sagas/startup.ts +++ b/ts/sagas/startup.ts @@ -168,7 +168,7 @@ function* initializeApplicationSaga(): IterableIterator { 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;