Skip to content

Commit c1fe7f1

Browse files
committed
frontend/bitrefill: harmonize tx note format
Uses the same "Bitrefill payment XYZ" format for transaction notes of Bitrefill spends, which other integrations use as well.
1 parent b26e651 commit c1fe7f1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

frontends/web/src/locales/en/app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@
820820
"enabled_false": "Disabled",
821821
"enabled_true": "Enabled",
822822
"noOptions": "No options found",
823+
"paymentRequestNote": "{{name}} payment {{orderId}}",
823824
"receive": "Receive {{coinCode}}",
824825
"receive_bitcoin": "Receive Bitcoin",
825826
"receive_crypto": "Receive crypto",

frontends/web/src/routes/exchange/bitrefill.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ export const Bitrefill = ({ accounts, code }: TProps) => {
152152

153153
let result = await proposeTx(code, txInput);
154154
if (result.success) {
155-
const txNote = `${t('buy.bitrefill.transactionNote')} (${String(invoiceId)})`;
155+
const txNote = t('generic.paymentRequestNote', {
156+
name: 'Bitrefill',
157+
invoiceId,
158+
});
156159
const sendResult = await sendTx(code, txNote);
157160
if (!sendResult.success && !('aborted' in sendResult)) {
158161
alertUser(t('unknownError', { errorMessage: sendResult.errorMessage }));

0 commit comments

Comments
 (0)