Fix refresh issue

This commit is contained in:
Pierre HUBERT 2021-05-14 15:37:57 +02:00
parent cc26bab72e
commit 938b46dedf

View File

@ -241,6 +241,8 @@ export class KeySettingsSection extends React.Component<
await AccountHelper.RegisterKey(name, credential);
snackbar("Successfully enrolled a new key!");
this.setState({ counter: this.state.counter + 1 });
} catch (e) {
console.error(e);
matAlert("Failed to register a new key!");