Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Fix first notification not performing action (#262)
Browse files Browse the repository at this point in the history
* Change IF statement to accept 0

* Get rid of console.log()
  • Loading branch information
venashial authored Jun 10, 2021
1 parent d174602 commit 566833d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/dashboard/notifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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]}`,
Expand Down

0 comments on commit 566833d

Please sign in to comment.