Skip to content

Commit

Permalink
Fix sentry #5685740037
Browse files Browse the repository at this point in the history
  • Loading branch information
loicknuchel committed Aug 7, 2024
1 parent bd1433d commit f831a1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/lib/azimutt/accounts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ defmodule Azimutt.Accounts do
defp create_or_update_profile_organization(%UserProfile{} = profile, attrs) do
orga_attrs = attrs["team_organization"]

if orga_attrs["create"] == "true" do
if orga_attrs["create"] == "true" && orga_attrs["name"] != "" do
if profile.team_organization do
Organizations.update_organization(orga_attrs, profile.team_organization, profile.user)
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class="grid grid-cols-4 gap-6 mt-6 sm:max-w-md lg:max-w-lg">
<div class="col-span-4">
<%= label f_org, :name, "Organization name", class: "block text-sm font-medium leading-6 text-gray-900" %>
<%= text_input f_org, :name, placeholder: "Azimutt", class: "mt-2 block w-full rounded-md border-0 px-3 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-900 sm:text-sm sm:leading-6" %>
<%= text_input f_org, :name, required: true, placeholder: "Azimutt", class: "mt-2 block w-full rounded-md border-0 px-3 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-900 sm:text-sm sm:leading-6" %>
<%= error_tag f_org, :name %>
</div>
</div>
Expand Down

0 comments on commit f831a1c

Please sign in to comment.