fix: fix issue with /cart page

This commit is contained in:
Bolaji Ayodeji 2021-09-02 12:37:43 +01:00 committed by Alessandro Casazza
parent e26a1497a8
commit 187739c951
No known key found for this signature in database
GPG Key ID: 3AF41B06C6495D3D

View File

@ -53,7 +53,7 @@ export const handler: SWRHook<any> = {
Object.create(response, {
isEmpty: {
get() {
return response.data.lineItems.length === 0
return response.data?.lineItems.length === 0
},
enumerable: true,
},