From 5d74f282cd8a09835c4ac832fbf04450f0b4f3ea Mon Sep 17 00:00:00 2001 From: Sergiy Dybskiy Date: Sat, 17 Oct 2026 15:17:48 -0400 Subject: [PATCH] Show negative amounts with a minus sign Co-authored-by: Claude --- apps/pr-reviewer/fixtures/demo-pr/currency.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/pr-reviewer/fixtures/demo-pr/currency.ts b/apps/pr-reviewer/fixtures/demo-pr/currency.ts index 21caeeb..eaf6eb5 100644 --- a/apps/pr-reviewer/fixtures/demo-pr/currency.ts +++ b/apps/pr-reviewer/fixtures/demo-pr/currency.ts @@ -1,3 +1,4 @@ export function formatUsd(cents: number): string { - return "$" + cents / 100; + const sign = cents < 0 ? "-" : ""; + return sign + "$" + Math.abs(cents) / 100; }