diff --git a/resources/js/components/StreamOutput/StreamOutput.vue b/resources/js/components/StreamOutput/StreamOutput.vue index d870c58..e39253d 100644 --- a/resources/js/components/StreamOutput/StreamOutput.vue +++ b/resources/js/components/StreamOutput/StreamOutput.vue @@ -45,7 +45,7 @@ }, mounted() { Echo.channel('stream-output').listen('StreamOutputHasChanged', event => - event.type.startsWith('voteCountdown') + event.type && event.type.startsWith('voteCountdown') ? this.handleVoteCountdownEvent(event) : this.handleOutputChangeEvent(event) )