Skip to content

Commit

Permalink
refactor(NotificationsOverview): rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-bitfly committed Sep 20, 2024
1 parent a310160 commit 9abfe15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"DashboardChartSummaryChartFilter",
"DashboardGroupManagementModal",
"DashboardValidatorManagmentModal",
"NotificationsOverview",
"checkout",
"ci",
"customFetch",
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/notifications/NotificationsOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const notificationsTotal = computed(() => {
return last24hEmailsCount.value + last24hWebhookCount.value + last24hPushCount.value
})
const userLimitMail = useUserStore()
const mailLimit = computed(() => userLimitMail.user.value?.premium_perks.email_notifications_per_day ?? 0)
const { user } = useUserStore()
const mailLimit = computed(() => user.value?.premium_perks.email_notifications_per_day ?? 0)
// TODO: replace with actual hours value when we get the endpoint.
const resetHours = ref(12)
Expand Down

0 comments on commit 9abfe15

Please sign in to comment.