Skip to content

Commit

Permalink
Set default event type to minevents
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-panhead committed Dec 1, 2024
1 parent 43b7666 commit 3fd0077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const getEvent = (eventID, data) => {
text: data.text || 'Empty text description for event',
date: data.date ? formatDate(data.date.seconds) : formatDate(getTimestamp().seconds),
points: data.points >= 0 ? data.points : '0',
type: data.type || 'activities',
type: data.type || 'minievents',
lastModified: data.lastModified ? formatDate(data.lastModified.seconds) : formatDate(getTimestamp().seconds),
lastModifiedBy: data.lastModifiedBy || 'Unknown user',
}
Expand Down

0 comments on commit 3fd0077

Please sign in to comment.