From ff830e7c6d6fbd768a91ed8f0e7be460656a6d29 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 30 Dec 2022 09:56:08 +0700 Subject: Address page --- src/pages/shop/checkout.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pages/shop') 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() { />
- +

{product.parent.name} - +

{product.code || '-'} {product.attributes.length > 0 ? ` | ${product.attributes.join(', ')}` : ''} -- cgit v1.2.3