From 866abc0affaa0af927a0d2d2f58b57256a060d49 Mon Sep 17 00:00:00 2001 From: Margus Part Date: Thu, 25 Nov 2021 20:33:39 +0200 Subject: [PATCH] fix: formatter --- lib/moon_web/pages/components/checkbox_page.ex | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/moon_web/pages/components/checkbox_page.ex b/lib/moon_web/pages/components/checkbox_page.ex index 6f1b4bf8b..ffa7b1c39 100644 --- a/lib/moon_web/pages/components/checkbox_page.ex +++ b/lib/moon_web/pages/components/checkbox_page.ex @@ -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( @@ -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