Skip to content

Commit f5440f6

Browse files
committed
Fix doneCounts regression
1 parent b3a57b3 commit f5440f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jgclark.Dashboard/src/react/components/ItemRow.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function ItemRow({ item, thisSection }: Props): Node {
2929
const { itemType } = item
3030

3131
let congratsMessage = 'Nothing on this list'
32-
if (itemType === 'itemCongrats' && thisSection.doneCounts.completedTasks > 0) {
32+
if (itemType === 'itemCongrats' && thisSection.doneCounts?.completedTasks && thisSection.doneCounts.completedTasks > 0) {
3333
congratsMessage = `All ${thisSection.doneCounts.completedTasks} items completed on this list`
3434
}
3535

0 commit comments

Comments
 (0)