|
|
@ -147,10 +147,10 @@ export class SessionPasswordPrompt extends React.PureComponent<{}, State> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async onLogin(passPhrase: string) {
|
|
|
|
public async onLogin(passPhrase: string) {
|
|
|
|
const trimmed = passPhrase ? passPhrase.trim() : passPhrase;
|
|
|
|
const passPhraseTrimmed = passPhrase.trim();
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
await window.onLogin(trimmed);
|
|
|
|
await window.onLogin(passPhraseTrimmed);
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
// Increment the error counter and show the button if necessary
|
|
|
|
// Increment the error counter and show the button if necessary
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|