mirror of
https://github.com/spliit-app/spliit.git
synced 2026-03-10 05:59:06 +01:00
Store amounts as cents
This commit is contained in:
@@ -53,7 +53,7 @@ export function ExpenseList({
|
||||
</div>
|
||||
<div className="flex items-center">
|
||||
<div className="tabular-nums whitespace-nowrap font-bold">
|
||||
{currency} {expense.amount.toFixed(2)}
|
||||
{currency} {(expense.amount / 100).toFixed(2)}
|
||||
</div>
|
||||
<Button size="icon" variant="link" className="-my-2" asChild>
|
||||
<Link href={`/groups/${groupId}/expenses/${expense.id}/edit`}>
|
||||
|
||||
Reference in New Issue
Block a user