mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Fix tournament results page
This commit is contained in:
@@ -146,7 +146,10 @@ export const TournamentResults = ({
|
|||||||
result = t("lostByForfeit");
|
result = t("lostByForfeit");
|
||||||
} else if (delta.result === 0.5) {
|
} else if (delta.result === 0.5) {
|
||||||
result = t("draw");
|
result = t("draw");
|
||||||
} else if (playedWhite && delta.result === 1) {
|
} else if (
|
||||||
|
(playedWhite && delta.result === 1) ||
|
||||||
|
(!playedWhite && delta.result === 0)
|
||||||
|
) {
|
||||||
result = t("whiteWin");
|
result = t("whiteWin");
|
||||||
} else result = t("blackWin");
|
} else result = t("blackWin");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user