Skip to content

Commit

Permalink
fix(frontend/src/pages/PublicPortal/Newsletter/UserEventFilters.js): …
Browse files Browse the repository at this point in the history
…Fix frequency exhibition
  • Loading branch information
rcboufleur committed Nov 28, 2024
1 parent 929f697 commit 581b147
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ export default function UserEventFilters() {
headerName: 'Frequency',
width: 110,
valueFormatter: (params) => {
return params.value === 1 ? 'Monthly' : 'Weekly'
const frequencyMap = {
1: 'Monthly',
2: 'Weekly',
3: 'Daily'
}
return frequencyMap[params.value] || 'Unknown'
}
},
{
Expand Down

0 comments on commit 581b147

Please sign in to comment.