diff options
author | Florian Dold <florian@dold.me> | 2022-04-13 08:44:37 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-04-13 08:44:37 +0200 |
commit | b28583ba7e3be7e4f69aaf543d087b6446f50cf0 (patch) | |
tree | 3266e5187384370a403cb339bf34ee378a06e757 /packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx | |
parent | f3d8b4474302a00fd923581046b0f5828a4c5976 (diff) | |
download | wallet-core-b28583ba7e3be7e4f69aaf543d087b6446f50cf0.tar.xz |
anastasis: tag state properly
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx index c14365d24..501415c40 100644 --- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx @@ -19,7 +19,7 @@ export function AttributeEntryScreen(): VNode { const [attrs, setAttrs] = useState<Record<string, string>>( currentIdentityAttributes, ); - const isBackup = state && state.backup_state; + const isBackup = state?.reducer_type === "backup"; const [askUserIfSure, setAskUserIfSure] = useState(false); if (!reducer) { |