Skip to content

Commit 7e28b86

Browse files
committed
Admin picks becomes Neutral Map and remove 00: for hours
1 parent 1004c2b commit 7e28b86

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/components/MapTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const props = defineProps<{
2323
<tr>
2424
<td class="map">Map</td>
2525
<td>Played</td>
26-
<td>Admin Picks</td>
26+
<td>Neutral Map</td>
2727
<td>Player Picks</td>
2828
<td>Total time played</td>
2929
<td>Longest game</td>

src/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export async function fetchData(tournament: string, type: string) {
2222
}
2323

2424
export function durationToString(duration: number) {
25-
return format(new UTCDate(fromUnixTime(duration / 1000)), "HH:mm:ss");
25+
const durationStr = format(
26+
new UTCDate(fromUnixTime(duration / 1000)),
27+
"HH:mm:ss",
28+
);
29+
return durationStr.startsWith("00:") ? durationStr.slice(3) : durationStr;
2630
}
2731

2832
export function iconName(name: string) {

0 commit comments

Comments
 (0)