ui: pass callback, not return value, to setState()

This commit is contained in:
Mike Salvatore 2021-02-25 20:02:33 -05:00
parent f82d4a1b97
commit 88e2ccb30a
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class ConfigurePageComponent extends AuthComponent {
attemptConfigSubmit() {
this.updateConfigSection();
this.setState({lastAction: 'submit_attempt'}, this.configSubmit());
this.setState({lastAction: 'submit_attempt'}, this.configSubmit);
}
configSubmit() {