From 938b46dedfd0b377d6f8c880688054f7abb3b916 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 14 May 2021 15:37:57 +0200 Subject: [PATCH] Fix refresh issue --- src/ui/routes/AccountSettingsRoute.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/routes/AccountSettingsRoute.tsx b/src/ui/routes/AccountSettingsRoute.tsx index 0f797bc..60988a5 100644 --- a/src/ui/routes/AccountSettingsRoute.tsx +++ b/src/ui/routes/AccountSettingsRoute.tsx @@ -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!");