Fix first notification not performing action (#262)

* Change IF statement to accept 0

* Get rid of console.log()
This commit is contained in:
venashial
2021-06-10 13:44:26 -07:00
committed by GitHub
parent d174602cc0
commit 566833da6e

View File

@@ -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]}`,