Skip to content

Commit

Permalink
fix(GoalHistory): non-strict compare index with null
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed Aug 2, 2023
1 parent d42a075 commit 9e8fe0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const getGoalHistory = async <T extends GoalHistory & { activity: Activit
}, {});

replacedValueIdx.forEach((sourceIndex) => {
if (!sourceIndex) {
if (sourceIndex == null) {
return;
}

Expand Down

0 comments on commit 9e8fe0b

Please sign in to comment.