Clear form to demonstrate loading easily (#118)
This commit is contained in:
parent
ee959ba42e
commit
f657bf8bc9
|
@ -37,7 +37,7 @@ export default class KeychainExample extends Component {
|
|||
this.state.password,
|
||||
{ accessControl: this.state.accessControl }
|
||||
);
|
||||
this.setState({ status: 'Credentials saved!' });
|
||||
this.setState({ username: '', password: '', status: 'Credentials saved!' });
|
||||
} catch (err) {
|
||||
this.setState({ status: 'Could not save credentials, ' + err });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue