Skip to content

Commit

Permalink
reset card after select
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Spanos committed Mar 25, 2023
1 parent c4ce879 commit 79d449b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/business/room/room.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (room *Room) readMessage(client *user.Connection) {
for {
_, message, err := client.ReadMessage()
if err != nil {
log.Printf("error: %v \nclient: %v", err, client.Username)
log.Printf("Client %v: error: %v", client.Username, err)
if client.IsVoter && room.cancelReveal != nil {
room.cancelReveal <- true
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/votingCardList/votingCardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const [selectedCard, setSelectedCard] = createSignal<number | null>(
export const VotingCardList: Component = () => {
createEffect((prev) => {
if (prev && !revealed()) {
// setSelectedCard(null);
setSelectedCard(null);
}
return revealed();
}, false);
Expand Down

0 comments on commit 79d449b

Please sign in to comment.