diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2023-05-05 19:15:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 19:15:12 +0200 |
commit | e1b60c0e360c322db078a0b8d6f349382338c61d (patch) | |
tree | 9e0faad4c08c9e26851df01d84bada733cd68eaa /src/components/TopBar/CallButton.vue | |
parent | 49fb966d70c29e6573885998935de7d1a3d6b2e9 (diff) | |
parent | 534fe031ff1dc2f7a0b4bf835233b625ca498a64 (diff) |
Merge pull request #9441 from Juneezee/refactor/includes
refactor: replace `indexOf` with `includes`
Diffstat (limited to 'src/components/TopBar/CallButton.vue')
-rw-r--r-- | src/components/TopBar/CallButton.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/TopBar/CallButton.vue b/src/components/TopBar/CallButton.vue index 8c5b8985d..82fa94d4f 100644 --- a/src/components/TopBar/CallButton.vue +++ b/src/components/TopBar/CallButton.vue @@ -278,7 +278,7 @@ export default { methods: { isParticipantTypeModerator(participantType) { - return [PARTICIPANT.TYPE.OWNER, PARTICIPANT.TYPE.MODERATOR, PARTICIPANT.TYPE.GUEST_MODERATOR].indexOf(participantType) !== -1 + return [PARTICIPANT.TYPE.OWNER, PARTICIPANT.TYPE.MODERATOR, PARTICIPANT.TYPE.GUEST_MODERATOR].includes(participantType) }, /** |