Skip to content

Commit 13fcc44

Browse files
committed
remove flicker when changing noob/nerd
1 parent 1a06061 commit 13fcc44

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frontend/src/components/TalkCard.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ function RoleButton({
184184
cmd = { AddNerd: payload };
185185
}
186186
}
187+
sendCommand(cmd);
187188

188189
if (!isPart) {
189190
const otherList =
@@ -198,8 +199,6 @@ function RoleButton({
198199
sendCommand(removeOtherCmd);
199200
}
200201
}
201-
202-
sendCommand(cmd);
203202
};
204203

205204
return (

0 commit comments

Comments
 (0)