From 0efd59901420572e1cb5e0086fa99e903936837b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 10 Sep 2021 19:12:33 +0200 Subject: [PATCH] Fix types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/dialogs/InteractiveAuthDialog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/dialogs/InteractiveAuthDialog.tsx b/src/components/views/dialogs/InteractiveAuthDialog.tsx index 9a1bec70c9..e6cf72cf9a 100644 --- a/src/components/views/dialogs/InteractiveAuthDialog.tsx +++ b/src/components/views/dialogs/InteractiveAuthDialog.tsx @@ -73,8 +73,8 @@ interface IState { authError: Error; // See _onUpdateStagePhase() - uiaStage: number; - uiaStagePhase: number; + uiaStage: number | string; + uiaStagePhase: number | string; } @replaceableComponent("views.dialogs.InteractiveAuthDialog") @@ -127,7 +127,7 @@ export default class InteractiveAuthDialog extends React.Component { + private onUpdateStagePhase = (newStage: string | number, newPhase: string | number): void => { // We copy the stage and stage phase params into state for title selection in render() this.setState({ uiaStage: newStage, uiaStagePhase: newPhase }); };