Skip to content

Commit

Permalink
fix(firebase): Fetching error when user do not have completedDays.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Nov 8, 2024
1 parent 6e77c0f commit 2211bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/firebase/createUserProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const fetchUserProfile = async (uid) => {
const profile = userSnapshot.data()

const { count, todayCount } = calculateStreakCount(
profile.streak.completedDays
profile.streak.completedDays || {}
)

return {
Expand Down

0 comments on commit 2211bca

Please sign in to comment.