Skip to content

Commit

Permalink
make amount abs
Browse files Browse the repository at this point in the history
  • Loading branch information
shayki5 committed Sep 8, 2024
1 parent 8fd05c1 commit cf76855
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/storage/sheets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ export type SheetRow = {
};

export function transactionRow(tx: TransactionRow): SheetRow {
let abs_number = (tx.chargedAmount = Math.abs(tx.chargedAmount));
return {
date: format(parseISO(tx.date), "dd/MM/yyyy", {}),
amount: tx.chargedAmount,
amount: abs,

Check failure on line 45 in src/storage/sheets.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find name 'abs'.

Check failure on line 45 in src/storage/sheets.ts

View workflow job for this annotation

GitHub Actions / build (latest)

Cannot find name 'abs'.
description: tx.description,
memo: tx.memo ?? "",
category: tx.category ?? "",
Expand Down

0 comments on commit cf76855

Please sign in to comment.