Rename cryptoCurrency to paymentLabel in storefront invoice views.
Align invoice view naming with InvoiceExtended and CMS.
This commit is contained in:
@@ -109,7 +109,7 @@ describe('toStorefrontInvoiceView', () => {
|
||||
const view = await toStorefrontInvoiceView(invoice);
|
||||
|
||||
expect(view).toMatchObject({
|
||||
cryptoCurrency: 'XMR',
|
||||
paymentLabel: 'XMR',
|
||||
expectedTotalCrypto: '1.00000000',
|
||||
receivedTotalCrypto: null,
|
||||
paymentAddress,
|
||||
@@ -154,7 +154,7 @@ describe('toStorefrontInvoiceView', () => {
|
||||
const view = await toStorefrontInvoiceView(invoice);
|
||||
|
||||
expect(view).toMatchObject({
|
||||
cryptoCurrency: 'BTC',
|
||||
paymentLabel: 'BTC',
|
||||
expectedTotalCrypto: '1.00000000',
|
||||
paymentAddress: 'bc1qstorefronttest'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user