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/TruthsPayingScreen.tsx | |
| parent | f3d8b4474302a00fd923581046b0f5828a4c5976 (diff) | |
anastasis: tag state properly
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 ?? []; |
