diff options
author | Sebastian <sebasjm@gmail.com> | 2024-01-02 12:10:55 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-01-02 12:10:55 -0300 |
commit | f0046ec557bf8d52aaf5cb13cf03ab98450adc0a (patch) | |
tree | ec7c812bc4827842c93500a8f032f8c62293edf6 /packages/merchant-backoffice-ui/src/paths/instance/orders/create | |
parent | a5f5a9326b26ca5f54fdad1ca8e58158874027f4 (diff) | |
download | wallet-core-f0046ec557bf8d52aaf5cb13cf03ab98450adc0a.tar.xz |
do not send extra if empty
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/orders/create')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx index 52ee9d351..2b1741276 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx @@ -235,7 +235,7 @@ export function CreatePage({ amount: order.pricing.order_price, summary: order.pricing.summary, products: productList, - extra: JSON.stringify(value.extra), + extra: undefinedIfEmpty(value.extra), pay_deadline: value.payments.pay_deadline ? { t_s: Math.floor(value.payments.pay_deadline.getTime() / 1000), |