Clear form to demonstrate loading easily (#118)

This commit is contained in:
Timothy Mwirabua 2018-03-29 14:26:00 +03:00 committed by Joel Arvidsson
parent ee959ba42e
commit f657bf8bc9
1 changed files with 1 additions and 1 deletions

View File

@ -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 });
}