From daa3c91afc82406fd4549bb500b7a3b73480c9bc Mon Sep 17 00:00:00 2001 From: tograss <102800033+tograss@users.noreply.github.com> Date: Tue, 16 May 2023 22:55:59 +0200 Subject: [PATCH] web/flows: fix authenticator_validate device select not sent to backend (#5638) --- .../authenticator_validate/AuthenticatorValidateStage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStage.ts b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStage.ts index fbc4dd14f..400511e48 100644 --- a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStage.ts +++ b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStage.ts @@ -53,9 +53,10 @@ export class AuthenticatorValidateStage _selectedDeviceChallenge?: DeviceChallenge; set selectedDeviceChallenge(value: DeviceChallenge | undefined) { + const previousChallenge = this._selectedDeviceChallenge; this._selectedDeviceChallenge = value; if (!value) return; - if (value === this._selectedDeviceChallenge) return; + if (value === previousChallenge) return; // We don't use this.submit here, as we don't want to advance the flow. // We just want to notify the backend which challenge has been selected. new FlowsApi(DEFAULT_CONFIG).flowsExecutorSolve({