fix(timesheets): small typo to_num function

This commit is contained in:
Matthieu Haineault 2025-08-29 11:17:24 -04:00
parent eefe82153f
commit 18c1ce38be

View File

@ -89,8 +89,8 @@ export class TimesheetsQueryService {
const expenses: ExpenseRow[] = raw_expenses.map(expense => ({
date: expense.date,
amount: typeof (expense.amount as any)?.toNumber === 'function' ?
(expense.amount as any).toNumber() : Number(expense.amount),
amount: typeof (expense.amount as any)?.to_num === 'function' ?
(expense.amount as any).to_num() : Number(expense.amount),
type: String(expense.bank_code?.type ?? '').toUpperCase(),
is_approved: expense.is_approved ?? true,
}));