Skip to content

Commit 077653e

Browse files
authored
Merge pull request #8287 from hi-ogawa/fix-disabling-rematch-button
Fix disabled rematch button
2 parents bdfe519 + ffd77d5 commit 077653e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/round/src/view/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function rematchButtons(ctrl: RoundController): MaybeVNodes {
7777
} else if (d.opponent.onGame) {
7878
d.player.offeringRematch = true;
7979
ctrl.socket.send('rematch-yes');
80-
} else if (!(e.target as HTMLElement).classList.contains('disabled')) ctrl.challengeRematch();
80+
} else if (!(e.currentTarget as HTMLElement).classList.contains('disabled')) ctrl.challengeRematch();
8181
},
8282
ctrl.redraw
8383
),

0 commit comments

Comments
 (0)