aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/components/product
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-09-11 15:07:55 -0300
committerSebastian <sebasjm@gmail.com>2023-09-11 15:08:08 -0300
commit8c20f4b27946679267bb44255721a9f14ae1077a (patch)
tree389d7dac804af0e17652240094947e710f503dd3 /packages/merchant-backoffice-ui/src/components/product
parente2422b68ebb2a29fb2e4d86f8a8cf9ec2a33e099 (diff)
downloadwallet-core-8c20f4b27946679267bb44255721a9f14ae1077a.tar.xz
new login token
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components/product')
-rw-r--r--packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx b/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx
index 726a94f5e..8bebbd298 100644
--- a/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx
+++ b/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx
@@ -114,7 +114,7 @@ export function ProductForm({ onSubscribe, initial, alreadyExist }: Props) {
onSubscribe(hasErrors ? undefined : submit);
}, [submit, hasErrors]);
- const backend = useBackendContext();
+ const { url: backendURL } = useBackendContext()
const { i18n } = useTranslationContext();
return (
@@ -128,7 +128,7 @@ export function ProductForm({ onSubscribe, initial, alreadyExist }: Props) {
{alreadyExist ? undefined : (
<InputWithAddon<Entity>
name="product_id"
- addonBefore={`${backend.url}/product/`}
+ addonBefore={`${backendURL}/product/`}
label={i18n.str`ID`}
tooltip={i18n.str`product identification to use in URLs (for internal use only)`}
/>