mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 16:14:02 +00:00
fix(miniapp): show original ledger currencies
This commit is contained in:
@@ -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'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user