Skip to content

Commit

Permalink
Add some debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Aug 11, 2024
1 parent 48ad694 commit 8d2e107
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/extension/tracker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ if (eventConfig.thisEvent === 1) {

// Used to log messages from the browser.
nodecg().listenFor('donationAlertsLogging', (msg) => {
nodecg().log.debug('[Tracker] %s', msg);
nodecg().log.info('[Tracker] %s', msg);
});

let isFirstLogin = true;
Expand Down
5 changes: 2 additions & 3 deletions src/graphics/omnibar/components/Total.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
'border-radius': '10px',
}"
>
{{ alertList[0] ? alertList[0].amount : '€0' }}
{{ alertList[0] ? alertList[0].amount?.toFixed(2) : '€0' }}
</span>
</div>
</div>
Expand Down Expand Up @@ -159,8 +159,7 @@ export default class extends Vue {
);
this.alertList.push({
total: completeTotal,
// @ts-expect-error this works so shrug
amount: (completeTotal - this.total).toFixed(2),
amount: completeTotal - this.total,
showAlert: true,
});
if (!this.playingAlerts) this.playNextAlert(true);
Expand Down

0 comments on commit 8d2e107

Please sign in to comment.