diff --git a/src/modules/wallet/services/WalletService.ts b/src/modules/wallet/services/WalletService.ts index fa99e76..f392b2b 100644 --- a/src/modules/wallet/services/WalletService.ts +++ b/src/modules/wallet/services/WalletService.ts @@ -269,12 +269,12 @@ export default class WalletService extends BaseService { // Transform to our transaction format this._transactions.value = payments.map((payment: any) => ({ id: payment.payment_hash, - amount: Math.abs(payment.amount), + amount: Math.abs(payment.amount) / 1000, description: payment.memo || payment.description || 'No description', timestamp: payment.time ? new Date(payment.time * 1000) : new Date(), type: payment.amount > 0 ? 'received' : 'sent', status: payment.pending ? 'pending' : 'confirmed', - fee: payment.fee + fee: payment.fee ? payment.fee / 1000 : undefined })).sort((a: PaymentTransaction, b: PaymentTransaction) => b.timestamp.getTime() - a.timestamp.getTime() )