Skip to content

Commit

Permalink
Corrected bad changes
Browse files Browse the repository at this point in the history
  • Loading branch information
spitfire305 committed Feb 13, 2024
1 parent 7c156ba commit 7b87407
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Settings/SubscriptionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ public function change(Request $request, Tier $tier)
}
$upgrade = $this->subscriptionUpgrade->user($user)->tier($tier)->upgradePrice($period);
$currency = $user->currencySymbol();
$validationService = false;

if ($user->isFrauding()) {
$validationService = $this->emailValidation;
$this->emailValidation->user($user)->requiresEmail();
}

return view('settings.subscription.change', compact(
Expand Down
5 changes: 1 addition & 4 deletions resources/views/settings/subscription/change.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
<article class="text-center max-w-xl container">

<x-grid type="1/1">
@if ($validationService)
@php
$validationService->user($user)->requiresEmail();
@endphp
@if ($user->isFrauding())
<x-alert type="warning">
{{ __('emails/validation.modal') }}
</x-alert></div><?php return; ?>
Expand Down

0 comments on commit 7b87407

Please sign in to comment.