Fix types
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
52d203dd8e
commit
0efd599014
1 changed files with 3 additions and 3 deletions
|
@ -73,8 +73,8 @@ interface IState {
|
||||||
authError: Error;
|
authError: Error;
|
||||||
|
|
||||||
// See _onUpdateStagePhase()
|
// See _onUpdateStagePhase()
|
||||||
uiaStage: number;
|
uiaStage: number | string;
|
||||||
uiaStagePhase: number;
|
uiaStagePhase: number | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("views.dialogs.InteractiveAuthDialog")
|
@replaceableComponent("views.dialogs.InteractiveAuthDialog")
|
||||||
|
@ -127,7 +127,7 @@ export default class InteractiveAuthDialog extends React.Component<IProps, IStat
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private onUpdateStagePhase = (newStage: number, newPhase: number): void => {
|
private onUpdateStagePhase = (newStage: string | number, newPhase: string | number): void => {
|
||||||
// We copy the stage and stage phase params into state for title selection in render()
|
// We copy the stage and stage phase params into state for title selection in render()
|
||||||
this.setState({ uiaStage: newStage, uiaStagePhase: newPhase });
|
this.setState({ uiaStage: newStage, uiaStagePhase: newPhase });
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue