Skip to content

Commit

Permalink
chore: run format
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkeaton committed Jan 27, 2025
1 parent 75057b5 commit efcd186
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/boot/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ window.windowMixin = {
if (currency == "eur") value = value / 100;

if (currency.length !== 3) {
return new Intl.NumberFormat(window.LOCALE).format(value) + " " + currency.toUpperCase();
return (
new Intl.NumberFormat(window.LOCALE).format(value) +
" " +
currency.toUpperCase()
);
} else {
return new Intl.NumberFormat(window.LOCALE, {
style: "currency",
Expand Down
6 changes: 5 additions & 1 deletion src/stores/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ export const useUiStore = defineStore("ui", {
if (currency == "eur") value = value / 100;

if (currency.length !== 3) {
return new Intl.NumberFormat(navigator.language).format(value) + " " + currency.toUpperCase();
return (
new Intl.NumberFormat(navigator.language).format(value) +
" " +
currency.toUpperCase()
);
} else {
return new Intl.NumberFormat(navigator.language, {
style: "currency",
Expand Down

0 comments on commit efcd186

Please sign in to comment.