BazzaDEV/spendwise

Convert Decimal objects to native number

Closed this issue · 0 comments

Some server actions are still returning objects which use the Prisma.Decimal object to store amounts (for transactions, reimbursements, etc.).

Before these values are returned by the server action, they should be converted to the native JavasScript number object using the built-in .toNumber() function.