We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3a57b3 commit f5440f6Copy full SHA for f5440f6
jgclark.Dashboard/src/react/components/ItemRow.jsx
@@ -29,7 +29,7 @@ function ItemRow({ item, thisSection }: Props): Node {
29
const { itemType } = item
30
31
let congratsMessage = 'Nothing on this list'
32
- if (itemType === 'itemCongrats' && thisSection.doneCounts.completedTasks > 0) {
+ if (itemType === 'itemCongrats' && thisSection.doneCounts?.completedTasks && thisSection.doneCounts.completedTasks > 0) {
33
congratsMessage = `All ${thisSection.doneCounts.completedTasks} items completed on this list`
34
}
35
0 commit comments