From 26ecf65e69c5cfca3ee6bd8569755f5e162ffd2e Mon Sep 17 00:00:00 2001 From: MarcelBitfly <174338434+marcel-bitfly@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:08:23 +0200 Subject: [PATCH] refactor(NotificationsOverview): rename `variable` --- frontend/.vscode/settings.json | 1 + frontend/components/notifications/NotificationsOverview.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.json index e5ba8997f..3c1ec5926 100644 --- a/frontend/.vscode/settings.json +++ b/frontend/.vscode/settings.json @@ -3,6 +3,7 @@ "DashboardChartSummaryChartFilter", "DashboardGroupManagementModal", "DashboardValidatorManagmentModal", + "NotificationsOverview", "checkout", "ci", "customFetch", diff --git a/frontend/components/notifications/NotificationsOverview.vue b/frontend/components/notifications/NotificationsOverview.vue index 7eb583cd4..67699e90e 100644 --- a/frontend/components/notifications/NotificationsOverview.vue +++ b/frontend/components/notifications/NotificationsOverview.vue @@ -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)