Skip to content

Commit

Permalink
fix: disabled delete my account button using blade directive
Browse files Browse the repository at this point in the history
  • Loading branch information
chosww committed Nov 22, 2023
1 parent d6d1d5e commit a8b00d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/views/settings/delete-account.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@
<x-hearth-error for="current_password" bag="destroyAccount" />
</div>

<button
disabled="{{ $user->isOnlyAdministratorOfOrganization() || $user->isOnlyAdministratorOfRegulatedOrganization() }}">
<button @disabled($user->isOnlyAdministratorOfOrganization() || $user->isOnlyAdministratorOfRegulatedOrganization())>
{{ __('hearth::user.action_delete_account') }}
</button>
</form>
Expand Down

0 comments on commit a8b00d9

Please sign in to comment.