Password prompt fixes

pull/1034/head
Vincent 5 years ago
parent 0b16f5965b
commit a75e0a9429

@ -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({

Loading…
Cancel
Save