From 566833da6eb6cf2fa2970556bb11f690889d26de Mon Sep 17 00:00:00 2001 From: venashial Date: Thu, 10 Jun 2021 13:44:26 -0700 Subject: [PATCH] Fix first notification not performing action (#262) * Change IF statement to accept 0 * Get rid of console.log() --- pages/dashboard/notifications.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/dashboard/notifications.vue b/pages/dashboard/notifications.vue index 4cc5dfe929..10cc89ec0b 100644 --- a/pages/dashboard/notifications.vue +++ b/pages/dashboard/notifications.vue @@ -75,7 +75,7 @@ export default { this.$nuxt.$loading.start() try { - if (index) { + if (typeof index !== 'undefined') { const config = { method: notification.actions[index].action_route[0].toLowerCase(), url: `${notification.actions[index].action_route[1]}`,