diff --git a/scripts/hud/comparisons.ts b/scripts/hud/comparisons.ts index 75d9dcbc..2273c601 100644 --- a/scripts/hud/comparisons.ts +++ b/scripts/hud/comparisons.ts @@ -39,6 +39,7 @@ class HudComparisonsHandler { if ( timerStatus.trackId.type === this.comparison.trackId.type && timerStatus.trackId.number === this.comparison.trackId.number + // eslint-disable-next-line no-empty ) { } else { // Track differs -- could maybe do a best-effort comparison if one is a stage and one is the main track, diff --git a/scripts/pages/leaderboards/entry.ts b/scripts/pages/leaderboards/entry.ts index c1b5f07a..390812d1 100644 --- a/scripts/pages/leaderboards/entry.ts +++ b/scripts/pages/leaderboards/entry.ts @@ -45,23 +45,24 @@ class LeaderboardEntryHandler { const index = $.GetContextPanel().GetAttributeInt('item_index', 0); const isValid = timeData.type !== LeaderboardEntryType.INVALID; if (isValid) { - items.push({ - label: $.Localize('#Action_WatchReplay'), - icon: 'file://{images}/movie-open-outline.svg', - style: 'icon-color-mid-blue', - jsCallback: () => { - $.DispatchEvent('LeaderboardEntry_PlayReplay', index); - } - }); - - items.push({ - label: $.Localize('#Action_SetComparisonRun'), - icon: 'file://{images}/chart-timeline.svg', - style: 'icon-color-light-blue', - jsCallback: () => { - $.DispatchEvent('LeaderboardEntry_SetComparisonRun', index); + items.push( + { + label: $.Localize('#Action_WatchReplay'), + icon: 'file://{images}/movie-open-outline.svg', + style: 'icon-color-mid-blue', + jsCallback: () => { + $.DispatchEvent('LeaderboardEntry_PlayReplay', index); + } + }, + { + label: $.Localize('#Action_SetComparisonRun'), + icon: 'file://{images}/chart-timeline.svg', + style: 'icon-color-light-blue', + jsCallback: () => { + $.DispatchEvent('LeaderboardEntry_SetComparisonRun', index); + } } - }); + ); } if (timeData.type === LeaderboardEntryType.ONLINE || timeData.type === LeaderboardEntryType.ONLINE_CACHED) {