Skip to content

Commit cb4c977

Browse files
committed
fix: simplify conditional check for order payment status
1 parent 07d331b commit cb4c977

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

components/ordercontainer/OrderSteps.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ export default function OrderSteps({
7272
setOrderDetails(order);
7373

7474
// If order is already PAID, jump to pickup
75-
if (
76-
order.status === OrderStatus.PAID &&
77-
step === OrderStep.PAYMENT
78-
) {
75+
if (order.status === OrderStatus.PAID && step === OrderStep.PAYMENT) {
7976
onPaymentSuccess();
8077
}
8178
// If already has a timeslot, jump to complete

0 commit comments

Comments
 (0)