fix adding to cart
This commit is contained in:
parent
4768ad8c29
commit
d7f8c32b6d
@ -278,7 +278,7 @@ export const sendUserData = async () => {
|
||||
export const addTariffToCart = async (tariffId: string) => {
|
||||
const [patchCartResponse, patchCartError] = await patchCart(tariffId);
|
||||
|
||||
if (patchCartError !== undefined) {
|
||||
if (patchCartError === undefined) {
|
||||
setCart(patchCartResponse);
|
||||
}
|
||||
return({patchCartResponse, patchCartError})
|
||||
|
Loading…
Reference in New Issue
Block a user