We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ce8c7 commit 64c39e8Copy full SHA for 64c39e8
apps/client/src/components/modal/SessionParticipantsModal.tsx
@@ -25,6 +25,7 @@ function SessionParticipantsModal() {
25
sessionToken,
26
setSessionUsers,
27
updateSessionUser,
28
+ updateReplyIsHost,
29
} = useSessionStore();
30
31
const [selectedUserId, setSelectedUserId] = useState<number>();
@@ -48,6 +49,7 @@ function SessionParticipantsModal() {
48
49
isHost: params.isHost,
50
}),
51
onSuccess: (res) => {
52
+ updateReplyIsHost(res.user.userId, res.user.isHost);
53
updateSessionUser(res.user);
54
addToast({
55
type: 'SUCCESS',
0 commit comments