From d4c6ac9fe8e0756c3522c51ba6cf0699bd1a4774 Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 18 Sep 2026 13:18:04 +0200 Subject: [PATCH] fix(costs): the settlement fixture carries the rate its type never had A foreign-currency payment gained an exchange_rate in the ledger fixture without the field on the local Payment type beside it, and the client typecheck has been red since. --- client/src/components/Budget/CostsPanel.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Budget/CostsPanel.test.tsx b/client/src/components/Budget/CostsPanel.test.tsx index f7d5b5ab5..0c099d0be 100644 --- a/client/src/components/Budget/CostsPanel.test.tsx +++ b/client/src/components/Budget/CostsPanel.test.tsx @@ -744,7 +744,7 @@ describe('CostsPanel — settlements in the ledger', () => { type Flow = { from: { user_id: number; username: string }; to: { user_id: number; username: string }; amount: number } type Balance = { user_id: number; username: string; avatar_url: string | null; balance: number } -type Payment = { id: number; from_user_id: number; to_user_id: number; amount: number; currency?: string | null; created_at?: string; settled_at?: string | null } +type Payment = { id: number; from_user_id: number; to_user_id: number; amount: number; currency?: string | null; exchange_rate?: number; created_at?: string; settled_at?: string | null } // `members` here is the wire shape the panel reads; `paid` is only set by the server. type MemberFixture = { user_id: number; username?: string; amount?: number; paid?: number }