Skip to content

Commit

Permalink
fix initial page logic
Browse files Browse the repository at this point in the history
  • Loading branch information
LeosPrograms committed May 7, 2024
1 parent 33e19f1 commit f779f34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@
fn_name: 'get_deliberations_for_deliberator',
payload: client.myPubKey,
});
if (records.length > 0) {
let all_records = [...records.completed, ...records.uncompleted]
if (all_records.length > 0) {
navigate('dashboard');
} else {
navigate('instructions');
Expand Down

0 comments on commit f779f34

Please sign in to comment.