aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/src/components/menu/SideBar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/anastasis-webui/src/components/menu/SideBar.tsx')
-rw-r--r--packages/anastasis-webui/src/components/menu/SideBar.tsx6
1 files changed, 2 insertions, 4 deletions
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={