summaryrefslogtreecommitdiff
path: root/src/pages/shop
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/shop')
-rw-r--r--src/pages/shop/checkout.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pages/shop/checkout.js b/src/pages/shop/checkout.js
index 286219c3..5a47dd5e 100644
--- a/src/pages/shop/checkout.js
+++ b/src/pages/shop/checkout.js
@@ -17,7 +17,7 @@ import { createSlug } from "../../helpers/slug";
export default function Checkout() {
- const [auth, setAuth] = useAuth();
+ const [auth] = useAuth();
const [address, setAddress] = useState(null);
const [selectedAddress, setSelectedAddress] = useState(null);
const [selectedPayment, setSelectedPayment] = useState(null);
@@ -34,7 +34,7 @@ export default function Checkout() {
useEffect(() => {
const getAddress = async () => {
- if (auth?.id) {
+ if (auth) {
const dataAddress = await apiOdoo('GET', `/api/v1/user/${auth.id}/address`);
setAddress(dataAddress);
}
@@ -145,9 +145,9 @@ export default function Checkout() {
/>
</div>
<div className="w-8/12 flex flex-col">
- <Link href={'/shop/product/' + createSlug(product.parent.name, product.parent.id)} className="product-card__title wrap-line-ellipsis-2">
+ <p className="product-card__title wrap-line-ellipsis-2">
{product.parent.name}
- </Link>
+ </p>
<p className="text-caption-2 text-gray_r-11 mt-1">
{product.code || '-'}
{product.attributes.length > 0 ? ` | ${product.attributes.join(', ')}` : ''}