Skip to content

Commit

Permalink
Merge pull request #547 from NBISweden/dev/activity
Browse files Browse the repository at this point in the history
Fix wrong activity selection bug
  • Loading branch information
jonandernovella authored Aug 4, 2022
2 parents f1df7ac + be184e8 commit 0a7ae9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/QuickAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const QuickAdd = ({
);
if (!didCancel && result) {
setActivities(result.time_entry_activities);
setActivity(result.time_entry_activities[0]);
setActivity(activity ? activity : result.time_entry_activities[0]);
}
};

Expand Down

0 comments on commit 0a7ae9c

Please sign in to comment.