diff options
author | Florian Dold <florian@dold.me> | 2022-04-13 19:32:12 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-04-13 19:32:17 +0200 |
commit | 5054ff6c6d200e8d4d7658e001b0bcb1936d6876 (patch) | |
tree | 325c7ad151554cc5927c266f0331eb4fdad57516 /packages/anastasis-webui/src/components/menu | |
parent | ec9aed276a5c837a9a93bae2a4c2e61d77256cc1 (diff) | |
download | wallet-core-5054ff6c6d200e8d4d7658e001b0bcb1936d6876.tar.xz |
anastasis-webui: make TOTP work again
Diffstat (limited to 'packages/anastasis-webui/src/components/menu')
-rw-r--r-- | packages/anastasis-webui/src/components/menu/LangSelector.tsx | 2 | ||||
-rw-r--r-- | packages/anastasis-webui/src/components/menu/SideBar.tsx | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/packages/anastasis-webui/src/components/menu/LangSelector.tsx b/packages/anastasis-webui/src/components/menu/LangSelector.tsx index fa22a29c0..3566f0c26 100644 --- a/packages/anastasis-webui/src/components/menu/LangSelector.tsx +++ b/packages/anastasis-webui/src/components/menu/LangSelector.tsx @@ -23,7 +23,7 @@ import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import langIcon from "../../assets/icons/languageicon.svg"; import { useTranslationContext } from "../../context/translation"; -import { strings as messages } from "../../i18n/strings"; +import { strings as messages } from "../../i18n/strings.js"; type LangsNames = { [P in keyof typeof messages]: string; diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx b/packages/anastasis-webui/src/components/menu/SideBar.tsx index 023b2b63c..e265a817d 100644 --- a/packages/anastasis-webui/src/components/menu/SideBar.tsx +++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx @@ -78,8 +78,7 @@ export function Sidebar({ mobile }: Props): VNode { </div> </li> )} - {reducer.currentReducerState && - reducer.currentReducerState.backup_state ? ( + {reducer.currentReducerState?.reducer_type === "backup" ? ( <Fragment> <li class={ @@ -191,8 +190,7 @@ export function Sidebar({ mobile }: Props): VNode { </li> </Fragment> ) : ( - reducer.currentReducerState && - reducer.currentReducerState?.recovery_state && ( + reducer.currentReducerState?.reducer_type === "recovery" && ( <Fragment> <li class={ |