From 541e667ddffb55777ee849091fc5b55dddece22a Mon Sep 17 00:00:00 2001 From: Grace Date: Fri, 15 Nov 2024 14:25:58 +0000 Subject: [PATCH] Fix failed to connect radio dialog to use flowType --- src/connection-stage-actions.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/connection-stage-actions.ts b/src/connection-stage-actions.ts index 422fb4e3b..da94eef80 100644 --- a/src/connection-stage-actions.ts +++ b/src/connection-stage-actions.ts @@ -214,10 +214,6 @@ export class ConnectionStageActions { }; }; - private handleConnectFail = () => { - this.setFlowStep(ConnectionFlowStep.ConnectFailed); - }; - private onConnected = () => { this.setFlowStep(ConnectionFlowStep.None); this.dataCollectionMicrobitConnected(); @@ -242,7 +238,11 @@ export class ConnectionStageActions { ); } case ConnectionStatus.FailedToConnect: { - return this.handleConnectFail(); + return this.setStage({ + ...this.stage, + flowType, + flowStep: ConnectionFlowStep.ConnectFailed, + }); } case ConnectionStatus.FailedToReconnectTwice: { return this.setStage({