Skip to content

Commit

Permalink
fix: pollId equals 0
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
  • Loading branch information
hamza221 committed Aug 15, 2024
1 parent ecbf73f commit 02dedd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/mixins/watchPolls.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ export const watchPolls = {
return await PublicAPI.watchPoll(this.$route.params.token, this.lastUpdated)
}

if(!this.$route.params.id) {
Logger.debug('Fetching updates canceled - no poll id')
}

return await PollsAPI.watchPoll(this.$route.params.id, this.lastUpdated)
},

Expand Down

0 comments on commit 02dedd5

Please sign in to comment.