fix: Fixes wrong state in password dialog.

Fixes the following: Warning: A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components

Detected due to failure while moving locked room test.
This commit is contained in:
damencho
2025-02-12 17:47:33 -06:00
committed by Дамян Минков
parent ac34f524fa
commit 4fa426ace0

View File

@@ -149,7 +149,7 @@ class PasswordRequiredPrompt extends Component<IProps, IState> {
// We have used the password so let's clean it.
this.setState({
password: undefined
password: ''
});
return true;