Skip to content

Commit

Permalink
Merge branch 'main' into PPF-557-fix-price-plan-field-on-validation-e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
simon-debruijn authored Jul 15, 2024
2 parents 80705b1 + 7accf0b commit 59328cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ private function guardCoupon(Request $request): ?RedirectResponse
]);
}

if ($coupon->isDistributed) {
if ($coupon->integrationId !== null) {
return Redirect::back()->withErrors(['coupon' => __('errors.coupon.already_used')]);
}

Expand Down

0 comments on commit 59328cd

Please sign in to comment.