From 9a37572f512acbecdff42bf5d29863b42b3f00e0 Mon Sep 17 00:00:00 2001 From: Edd Date: Tue, 20 Feb 2024 09:24:25 +0000 Subject: [PATCH] fix(explorer): sizedelta in ammends displayed incorrectly' (#5816) --- .../order-details/amend-order-details.spec.tsx | 1 + .../components/order-details/amend-order-details.tsx | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/explorer/src/app/components/order-details/amend-order-details.spec.tsx b/apps/explorer/src/app/components/order-details/amend-order-details.spec.tsx index 94696d296..829905804 100644 --- a/apps/explorer/src/app/components/order-details/amend-order-details.spec.tsx +++ b/apps/explorer/src/app/components/order-details/amend-order-details.spec.tsx @@ -175,6 +175,7 @@ describe('Amend order details', () => { const res = renderExistingAmend('123', 1, amend); expect(await res.findByText('New size')).toBeInTheDocument(); + expect(await res.findByText('Size ±')).toBeInTheDocument(); }); it('Renders Reference if provided', async () => { diff --git a/apps/explorer/src/app/components/order-details/amend-order-details.tsx b/apps/explorer/src/app/components/order-details/amend-order-details.tsx index 7c603b0ad..55fcd51c2 100644 --- a/apps/explorer/src/app/components/order-details/amend-order-details.tsx +++ b/apps/explorer/src/app/components/order-details/amend-order-details.tsx @@ -82,7 +82,7 @@ const AmendOrderDetails = ({ id, version, amend }: AmendOrderDetailsProps) => { {amend.sizeDelta && amend.sizeDelta !== '0' ? (

- {t('New size')} + {t('Size ±')}

{
) : null} + {o && ( +
+

+ {t('New size')} +

+
+ {o ? o.size : null} +
+
+ )} {amend.price && amend.price !== '0' ? (