diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2023-05-12 20:52:42 +0200 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2023-05-12 20:52:42 +0200 |
commit | 236ad2f8ce9e8bb27a04bf090a9fda61c5814c0e (patch) | |
tree | 0faaf448757c2f9d1bc9881ef0105445d04b45e4 /src/components/RightSidebar/Participants/ParticipantsList/Participant | |
parent | 467ed5567ca2166952d9551e0c3e526232ed3e70 (diff) |
replace complex calculations with Array.at()
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Diffstat (limited to 'src/components/RightSidebar/Participants/ParticipantsList/Participant')
-rw-r--r-- | src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js index d5a17ea54..c5e0222b8 100644 --- a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js +++ b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js @@ -39,7 +39,7 @@ describe('Participant.vue', () => { }) if (filteredCalls.length) { - return filteredCalls[filteredCalls.length - 1][1].value + return filteredCalls.at(-1)[1].value } return null |