Skip to content

Commit

Permalink
Added orders dependency in payment card
Browse files Browse the repository at this point in the history
  • Loading branch information
mansisindhu committed Dec 20, 2021
1 parent ec75931 commit 7392998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/GamePageComponents/Paymentcard/PaymentCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const PaymentCard = (props) => {
if (orders?.includes(id)) {
setOrderedStatus(true);
}
}, []);
}, [user.orders]);

const dispatch = useDispatch();
const history = useHistory();
Expand Down Expand Up @@ -185,7 +185,7 @@ const PaymentCard = (props) => {
</div>
) : null}
{thankyouModal ? (
<Checkout handleModal={handleModal} title={title} />
<Checkout handleModal={handleModal} title={title} id={id} />
) : null}
</>
);
Expand Down
1 change: 0 additions & 1 deletion src/pages/LandingPage/LandingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import SubNavbar from "../../components/SubNavbar";
import CarouselMain from "../../components/CarouselMain";
import Footer from "../../components/Footer";
import LoadingPage from "../../components/LoadingPage";
import { useState } from "react";

const LandingPage = () => {
const landingPageData = useSelector((state) => state.landingPageData);
Expand Down

1 comment on commit 7392998

@vercel
Copy link

@vercel vercel bot commented on 7392998 Dec 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.