File tree Expand file tree Collapse file tree
fastlane/metadata/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- APP_VERSION = 2.5.20
2- APP_BUILD_NUMBER = 453
1+ APP_VERSION = 2.5.21
2+ APP_BUILD_NUMBER = 454
Original file line number Diff line number Diff line change 1+ - [Bitcoinize] Fixed wrong BTC amount on ticket auto-printing
Original file line number Diff line number Diff line change 1+ - [Bitcoinize] Corrigé le mauvais montant lors de l'impression automatique du ticket
Original file line number Diff line number Diff line change @@ -599,7 +599,10 @@ export const Invoice = () => {
599599 // don't remove description if it already stored
600600 setDescription ( getInvoiceData . description ) ;
601601 }
602- setAmount ( getInvoiceData . amount * 1000 ) ;
602+
603+ const amountInSats = Math . round ( getInvoiceData . amount * 1000 ) ;
604+
605+ setAmount ( amountInSats ) ;
603606 setPaidAt ( getInvoiceData . paidAt ) ;
604607 setInvoiceCurrency ( getInvoiceData . input . unit || "CHF" ) ;
605608 setInvoiceFiatAmount ( getInvoiceData . input . amount ) ;
@@ -611,7 +614,7 @@ export const Invoice = () => {
611614 status !== "settled" &&
612615 ! isExternalInvoice
613616 ) {
614- onFullScreenPaid ( getInvoiceData ) ;
617+ onFullScreenPaid ( { ... getInvoiceData , amount : amountInSats } ) ;
615618 AsyncStorage . getItem ( keyStoreTransactionsHistory ) . then (
616619 ( transactionsHistory = "[]" ) => {
617620 let localTransactionsHistory : InvoiceType [ ] =
You can’t perform that action at this time.
0 commit comments