Skip to content

Commit

Permalink
fix(participantStore): update the whole participant object
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Jan 25, 2024
1 parent 931617e commit 7adaa05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/participantsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ const mutations = {

updateParticipant(state, { token, attendeeId, updatedData }) {
if (state.attendees[token] && state.attendees[token][attendeeId]) {
state.attendees[token][attendeeId] = Object.assign(state.attendees[token][attendeeId], updatedData)
state.attendees[token][attendeeId] = Object.assign({}, state.attendees[token][attendeeId], updatedData)
} else {
console.error('Error while updating the participant')
}
Expand Down

0 comments on commit 7adaa05

Please sign in to comment.