Update NSG theme, also refactor some code

This commit is contained in:
Lordmau5 2024-03-14 09:26:33 +01:00
parent a422777f71
commit 6f6859d309
6 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -62,7 +62,7 @@ export default class extends Vue {
}
get symbol(): string {
return nodecg.bundleConfig.event.currency?.symbol || '$';
return nodecg.bundleConfig.event.currency.symbol || '$';
}
async created(): Promise<void> {

View File

@ -155,8 +155,8 @@ export default class extends Vue {
get totalStr(): string {
// "Reset" value every 10k, specific to ESA Legends 2023.
const symbol = nodecg.bundleConfig.event.currency.symbol;
const countryCode = nodecg.bundleConfig.event.currency.countryCode;
const { symbol } = nodecg.bundleConfig.event.currency;
const { countryCode } = nodecg.bundleConfig.event.currency;
const esal23 = nodecg.bundleConfig.event.shorts === 'esal23';