🐛 add env to useDb and apply prettier
tinyedge/deploy Deployed by TinyEdge

This commit is contained in:
2026-08-07 13:28:26 +02:00
parent 67727f96ab
commit cbe1b42f6e
54 changed files with 5492 additions and 2406 deletions
+6 -3
View File
@@ -1,11 +1,14 @@
export function toCents(amount: number): number {
return Math.round(amount * 100)
return Math.round(amount * 100);
}
export function fromCents(cents: number): number {
return cents / 100
return cents / 100;
}
export function formatCurrency(cents: number, currency: string): string {
return new Intl.NumberFormat(undefined, { style: 'currency', currency }).format(fromCents(cents))
return new Intl.NumberFormat(undefined, {
style: 'currency',
currency,
}).format(fromCents(cents));
}