diff options
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/TruthsPayingScreen.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/TruthsPayingScreen.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.tsx b/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.tsx index 6f95fa93b..c6f8cbead 100644 --- a/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.tsx @@ -7,10 +7,7 @@ export function TruthsPayingScreen(): VNode { if (!reducer) { return <div>no reducer in context</div>; } - if ( - !reducer.currentReducerState || - reducer.currentReducerState.backup_state === undefined - ) { + if (reducer.currentReducerState?.reducer_type !== "backup") { return <div>invalid state</div>; } const payments = reducer.currentReducerState.payments ?? []; |