Skip to content

Commit a1ddbcc

Browse files
committed
Don't fetch if there is no bill id
1 parent 2049953 commit a1ddbcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/quotes/QuotePage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ function Quote({ value, isFetching }: { value: InfoReply; isFetching: boolean })
695695
paymentStatus({
696696
path: { bill_id: billId },
697697
}),
698+
enabled: !!billId,
698699
})
699700

700701
const requestedToPay = paymentData?.data?.payment_status.requested_to_pay ?? false

0 commit comments

Comments
 (0)