Skip to content

Commit eb108c1

Browse files
Merge pull request #261 from SwissBitcoinPay/fix-atm-currency
Fix atm currency
2 parents 7ef33b1 + 295d430 commit eb108c1

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
APP_VERSION=2.5.1
1+
APP_VERSION=2.5.2
22

3-
APP_BUILD_NUMBER=427
3+
APP_BUILD_NUMBER=428
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Sometimes the custom unit currency was not correctly displayed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Parfois la devise personnalisée n'était pas correctement affichée

src/hooks/usePostInvoice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const usePostInvoice = () => {
156156
replace: true,
157157
state: {
158158
isLocalInvoice,
159-
unit: currency,
159+
unit: unit || currency,
160160
decimalFiat,
161161
customNote: description
162162
}
@@ -171,7 +171,7 @@ export const usePostInvoice = () => {
171171
status: "open",
172172
time: Math.round(new Date().getTime() / 1000),
173173
input: {
174-
unit: currency,
174+
unit: unit || currency,
175175
amount: decimalFiat
176176
},
177177
tag: "invoice-tpos",

0 commit comments

Comments
 (0)