Skip to content

Commit

Permalink
Merge pull request #40 from MakairaIO/fix/oxid-set-correct-url-paths
Browse files Browse the repository at this point in the history
Fix/oxid set correct url paths
  • Loading branch information
jembach authored Jul 19, 2022
2 parents 57729d1 + 73cf870 commit 6430c75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/storefront-react/src/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ const ShopProvider: React.FC<ShopProviderProps> = ({
async function reloadUserAfterUpdate() {
const res = await client.user.getUser({ input: {} })

if (res.data) {
if (!res.error) {
setUser(res.data)
}
}
Expand Down
8 changes: 4 additions & 4 deletions packages/storefront-shop-adapter-oxid/src/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ export const USER_GET_CURRENT =
'/index.php?cl=MakairaUserController&fnc=getCurrentLoggedInUser'
export const USER_LOGOUT = '/index.php?cl=MakairaUserController&fnc=logout'

export const CART_GET = '/index.php?cl=MakairaUserController&fnc=getCartItems'
export const CART_GET = '/index.php?cl=MakairaCartController&fnc=getCartItems'
export const CART_ADD =
'/index.php?cl=MakairaUserController&fnc=addProductToCart'
'/index.php?cl=MakairaCartController&fnc=addProductToCart'
export const CART_REMOVE =
'/index.php?cl=MakairaUserController&fnc=removeCartItem'
'/index.php?cl=MakairaCartController&fnc=removeCartItem'
export const CART_UPDATE =
'/index.php?cl=MakairaUserController&fnc=updateCartItem'
'/index.php?cl=MakairaCartController&fnc=updateCartItem'

export const REVIEW_GET = '/index.php?cl=MakairaReviewController&fnc=getReviews'
export const REVIEW_CREATE =
Expand Down

0 comments on commit 6430c75

Please sign in to comment.