Skip to content

Commit

Permalink
Merge pull request #1106 from linea-it/subscription_fixes_01
Browse files Browse the repository at this point in the history
Fix frequency listed in filters
  • Loading branch information
rcboufleur authored Nov 28, 2024
2 parents 929f697 + 581b147 commit 028335e
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 028335e

Please sign in to comment.