myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit 3a483335f0a35e9d0fe6ae11d8826ece112e0d42
parent 3ce9b6a07870de615c41e36da8e6c638b6c172a7
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun, 15 Mar 2026 16:10:48 +0100

fix: unreachable return

Introduced in ddf659b0

Diffstat:
Msrc/frontend/utils.js | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/frontend/utils.js b/src/frontend/utils.js @@ -88,8 +88,10 @@ export const rankByHeat = function(rankingComp) { // rank by start number return a.nr - b.nr case 'best': - // rank by best heat first - return b.bestHeat - a.bestHeat + if (b.bestHeat - a.bestHeat !== 0) { + // rank by best heat first + return b.bestHeat - a.bestHeat + } // rank by least worst heat for identical best heats return b.worstHeat - a.worstHeat case 'worst':