summaryrefslogtreecommitdiff
path: root/src/pages/shop
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-10-05 10:35:30 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-10-05 10:35:30 +0700
commite9f65fadbfcf319db1f2f73e0984acad4f9aa505 (patch)
treea9e3a1a3048298c3a8a41284e7b8fce16ab45453 /src/pages/shop
parent760a7199aafb1d7f995611f9b6bca1379dfc4b65 (diff)
error query params
Diffstat (limited to 'src/pages/shop')
-rw-r--r--src/pages/shop/product/[slug].jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/shop/product/[slug].jsx b/src/pages/shop/product/[slug].jsx
index 7351da2f..63fb2e7e 100644
--- a/src/pages/shop/product/[slug].jsx
+++ b/src/pages/shop/product/[slug].jsx
@@ -18,7 +18,7 @@ export async function getServerSideProps(context) {
const cookies = context.req.headers.cookie
const cookieObj = cookies ? cookie.parse(cookies) : {}
const auth = cookieObj.auth ? JSON.parse(cookieObj.auth) : {}
- const tier = auth.pricelist
+ const tier = auth.pricelist ? auth.pricelist : false
const authToken = auth?.token || ''
let response = await axios(