Skip to content

Commit cc8f495

Browse files
committed
feat: add error message for new invoice generation limit
1 parent 23655c5 commit cc8f495

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/sources/src/components/ReceivePayment/view.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ export class ReceivePayment extends Component {
179179
))}
180180
{payments.receive.error && (
181181
<Message type="error">
182-
{t([`errors.${payments.receive.error.code}`, 'errors.default'])}
182+
{t([`errors.${payments.receive.error.code}`, 'errors.default'], {
183+
...payments.receive.error,
184+
})}
183185
</Message>
184186
)}
185187
<Footer>

app/sources/src/locales/en.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export default {
6363
'You do not have enough balance to pay {{amountString}} with {{feeString}} payment fees',
6464
'403RPA07':
6565
'You have unfinished payment requests for {{pendingRequestsSum}} and your balance is not enough to pay them and {{amountString}} with {{feeString}} payment fees',
66-
'403RPA06': 'You trying to send payments too often.\nNeed to send frequently? Contact us!',
66+
'403RPA06': 'You trying to send requests too often.\nNeed to send frequently? Contact us!',
67+
'403RPA09': 'You already have {{activeInvoices}} unexpired invoices\nwhile your limit is {{maxActiveInvoices}}.\n\nNeed more? Contact us!',
6768
default: 'Oops, something went wrong',
6869
},
6970
tips: {

0 commit comments

Comments
 (0)