fix(miniapp): show original ledger currencies

This commit is contained in:
2026-03-10 15:58:33 +04:00
parent d55bf42c7b
commit 4c0508f618
9 changed files with 35 additions and 12 deletions

View File

@@ -63,6 +63,7 @@ function repository(
id: 'purchase-1',
payerMemberId: member?.id ?? 'member-1',
amountMinor: 3000n,
currency: 'GEL',
description: 'Soap',
occurredAt: instantFromIso('2026-03-12T11:00:00.000Z')
}
@@ -244,10 +245,12 @@ describe('createMiniAppDashboardHandler', () => {
],
ledger: [
{
title: 'Soap'
title: 'Soap',
currency: 'GEL'
},
{
title: 'Electricity'
title: 'Electricity',
currency: 'USD'
}
]
}

View File

@@ -103,6 +103,7 @@ export function createMiniAppDashboardHandler(options: {
kind: entry.kind,
title: entry.title,
amountMajor: entry.amount.toMajorString(),
currency: entry.currency,
actorDisplayName: entry.actorDisplayName,
occurredAt: entry.occurredAt
}))