Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
APP_VERSION=2.5.20
APP_BUILD_NUMBER=453
APP_VERSION=2.5.21
APP_BUILD_NUMBER=454
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/454.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bitcoinize] Fixed wrong BTC amount on ticket auto-printing
1 change: 1 addition & 0 deletions fastlane/metadata/android/fr-FR/changelogs/454.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bitcoinize] Corrigé le mauvais montant lors de l'impression automatique du ticket
7 changes: 5 additions & 2 deletions src/screens/Invoice/Invoice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,10 @@ export const Invoice = () => {
// don't remove description if it already stored
setDescription(getInvoiceData.description);
}
setAmount(getInvoiceData.amount * 1000);

const amountInSats = Math.round(getInvoiceData.amount * 1000);

setAmount(amountInSats);
setPaidAt(getInvoiceData.paidAt);
setInvoiceCurrency(getInvoiceData.input.unit || "CHF");
setInvoiceFiatAmount(getInvoiceData.input.amount);
Expand All @@ -611,7 +614,7 @@ export const Invoice = () => {
status !== "settled" &&
!isExternalInvoice
) {
onFullScreenPaid(getInvoiceData);
onFullScreenPaid({ ...getInvoiceData, amount: amountInSats });
AsyncStorage.getItem(keyStoreTransactionsHistory).then(
(transactionsHistory = "[]") => {
let localTransactionsHistory: InvoiceType[] =
Expand Down
Loading