use changeset.valid? for errors
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
|            Routes.user_registration_path(@conn, :create), | ||||
|            [class: "flex flex-col justify-center items-center space-y-4"], | ||||
|            fn f -> %> | ||||
|     <%= if @changeset.action do %> | ||||
|     <%= unless @changeset.valid? do %> | ||||
|       <div class="alert alert-danger"> | ||||
|         <p> | ||||
|           <%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user