Skip to content

Commit

Permalink
fix: use enum
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwoodland authored and josephmcg committed Jun 3, 2022
1 parent 82cfed8 commit b9d35cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/views/media/actions/Actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export default Vue.extend({
async toggleMute(kind: keyof PeerMutedState) {
this.isLoading = true
try {
if (kind === 'audio') {
if (kind === WebRTCEnum.AUDIO) {
this.$store.dispatch('audio/toggleMute', undefined, { root: true })
} else if (kind === 'video') {
} else if (kind === WebRTCEnum.VIDEO) {
this.$store.dispatch('video/toggleMute', undefined, { root: true })
} else {
await this.$store.dispatch(
Expand Down

0 comments on commit b9d35cc

Please sign in to comment.