in sample/authui-react/src/components/app.tsx [255:271]
private updateError(error: {code?: string, message?: string, retry?: any} | null) {
const modifiedState: AppState = {
alertParams: {
code: (error && error.code) || undefined,
message: (error && error.message) || undefined,
retry: (error && error.retry) || undefined,
},
// Keep existing values for the rest of the state.
mode: this.state.mode,
navbar: this.state.navbar,
signIn: this.state.signIn,
signInWithEmail: this.state.signInWithEmail,
signUpWithEmail: this.state.signUpWithEmail,
selectTenant: this.state.selectTenant,
};
this.setState(modifiedState);
}