mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-16 05:11:10 -05:00
🐛 fix(controller): Order status
This commit is contained in:
parent
01e06c6338
commit
8c6a097d5b
@ -42,7 +42,7 @@ export default function Page() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const { data: payment } = useQuery({
|
const { data: payment } = useQuery({
|
||||||
enabled: !!order_no && !!data?.status && data?.status !== 3,
|
enabled: !!order_no && data?.status === 1,
|
||||||
queryKey: ['checkoutOrder', order_no],
|
queryKey: ['checkoutOrder', order_no],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const { data } = await checkoutOrder({ orderNo: order_no! });
|
const { data } = await checkoutOrder({ orderNo: order_no! });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user