Skip to content

Commit

Permalink
Metako being picky 😠
Browse files Browse the repository at this point in the history
  • Loading branch information
zoton2 committed Dec 10, 2023
1 parent d00d517 commit 2b8f46c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/graphics/omnibar/components/Total.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,12 @@ export default class extends Vue {
}
get totalStr(): string {
let val = this.total;
// "Reset" value every 10k, specific to ESA Legends 2023.
if (nodecg.bundleConfig.event.shorts === 'esal23') val = this.total % 10000;
return `$${Math.floor(val).toLocaleString('en-US', { maximumFractionDigits: 0 })}`;
const esal23 = nodecg.bundleConfig.event.shorts === 'esal23';
return `$${Math.floor(esal23 ? this.total % 10000 : this.total).toLocaleString('en-US', {
maximumFractionDigits: 0,
minimumIntegerDigits: esal23 && this.total >= 10000 ? 4 : undefined,
})}`;
}
async playNextAlert(start = false): Promise<void> {
Expand Down

0 comments on commit 2b8f46c

Please sign in to comment.