summaryrefslogtreecommitdiff
path: root/src/lib/home/components
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-15 16:17:13 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-15 16:17:13 +0700
commit607ddd5050b5ee900606984b60e74d094fbe89f9 (patch)
tree4abc6d8576be0c447a60af969022c04516777ddd /src/lib/home/components
parent9e967a55c575d24b740620325838ab857e7eef04 (diff)
<iman> update fix code
Diffstat (limited to 'src/lib/home/components')
-rw-r--r--src/lib/home/components/PreferredBrand.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/home/components/PreferredBrand.jsx b/src/lib/home/components/PreferredBrand.jsx
index 9fb1228a..b7a30503 100644
--- a/src/lib/home/components/PreferredBrand.jsx
+++ b/src/lib/home/components/PreferredBrand.jsx
@@ -19,9 +19,8 @@ const PreferredBrand = () => {
setIsLoading(true);
const name = startWith ? `${startWith}*` : '';
const result = await axios(
- `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/brands?rows=20`
+ `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/preferredBrand?rows=20`
);
-
setIsLoading(false);
setManufactures((manufactures) => [...result.data]);
}, [startWith]);