Skip to content

Commit

Permalink
🐛 fix(controller): Order status
Browse files Browse the repository at this point in the history
  • Loading branch information
web-ppanel committed Dec 24, 2024
1 parent 01e06c6 commit 8c6a097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/user/app/(main)/(user)/payment/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function Page() {
});

const { data: payment } = useQuery({
enabled: !!order_no && !!data?.status && data?.status !== 3,
enabled: !!order_no && data?.status === 1,
queryKey: ['checkoutOrder', order_no],
queryFn: async () => {
const { data } = await checkoutOrder({ orderNo: order_no! });
Expand Down

0 comments on commit 8c6a097

Please sign in to comment.