Skip to content

Commit

Permalink
fix: formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
theycallmehero committed Nov 25, 2021
1 parent dce6bfa commit 866abc0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/moon_web/pages/components/checkbox_page.ex
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ defmodule MoonWeb.Pages.Components.CheckboxPage do
{:noreply, assign(socket, uri: uri)}
end


def get_agrees_to_terms_of_service(user_changeset) do
Moon.Components.Checkbox.is_true(user_changeset.changes[:agrees_to_terms_of_service]) || Moon.Components.Checkbox.is_true(user_changeset.data.agrees_to_terms_of_service)
Moon.Components.Checkbox.is_true(user_changeset.changes[:agrees_to_terms_of_service]) ||
Moon.Components.Checkbox.is_true(user_changeset.data.agrees_to_terms_of_service)
end

def handle_event(
Expand All @@ -98,8 +98,7 @@ defmodule MoonWeb.Pages.Components.CheckboxPage do
},
socket
) do
user_changeset =
User.changeset(%User{}, params)
user_changeset = User.changeset(%User{}, params)

{:noreply, assign(socket, user_changeset: user_changeset)}
end
Expand Down

0 comments on commit 866abc0

Please sign in to comment.