diff options
author | Sebastian <sebasjm@gmail.com> | 2024-05-13 09:19:36 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-05-13 09:19:36 -0300 |
commit | dbbafc284f61561d62092db595f1e9eb38b9fdd6 (patch) | |
tree | 4f383944f0a866b09ff14caa3d3e190730f24048 /packages/merchant-backoffice-ui | |
parent | 10ebd8cff448c89468db6238d3904515d075e295 (diff) | |
download | wallet-core-dbbafc284f61561d62092db595f1e9eb38b9fdd6.tar.xz |
fix v15
Diffstat (limited to 'packages/merchant-backoffice-ui')
-rw-r--r-- | packages/merchant-backoffice-ui/src/Application.tsx | 5 | ||||
-rw-r--r-- | packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/Application.tsx b/packages/merchant-backoffice-ui/src/Application.tsx index 097e98567..5be21ff8f 100644 --- a/packages/merchant-backoffice-ui/src/Application.tsx +++ b/packages/merchant-backoffice-ui/src/Application.tsx @@ -279,7 +279,10 @@ const swrCacheEvictor = new (class return; } case TalerMerchantInstanceCacheEviction.UPDATE_PRODUCT: { - await Promise.all([revalidateProductDetails()]); + await Promise.all([ + revalidateProductDetails(), + revalidateInstanceProducts(), + ]); return; } case TalerMerchantInstanceCacheEviction.DELETE_PRODUCT: { diff --git a/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx b/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx index c6d687b85..dede0008f 100644 --- a/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx +++ b/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx @@ -147,13 +147,13 @@ export function ProductForm({ onSubscribe, initial, alreadyExist }: Props) { name="minimum_age" label={i18n.str`Age restriction`} tooltip={i18n.str`is this product restricted for customer below certain age?`} - help={i18n.str`minimum age of the buyer`} + help={i18n.str`minimum age of the customer`} /> <Input<Entity> name="unit" label={i18n.str`Unit name`} tooltip={i18n.str`unit describing quantity of product sold (e.g. 2 kilograms, 5 liters, 3 items, 5 meters) for customers`} - help={i18n.str`exajmple: kg, items or liters`} + help={i18n.str`example: kg, items or liters`} /> <InputCurrency<Entity> name="price" |