summaryrefslogtreecommitdiff
path: root/src/pages/shop
diff options
context:
space:
mode:
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(