Skip to content

Commit

Permalink
fix: more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm committed Sep 23, 2024
1 parent 8eaeea4 commit 895a56e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/atomic_web/live/partner_live/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<div class="sm:grid sm:grid-cols-2 sm:gap-px">
<%= for partner <- @partners |> Enum.filter(fn partner -> partner.id != @partner.id end) do %>
<div class="rounded-lg group relative border border-zinc-200 bg-white p-4 hover:bg-zinc-50 m-2">
<.link href={~p"/organizations/#{organization}/partners/#{@partner}"}>
<.link href={~p"/organizations/#{@organization}/partners/#{@partner}"}>
<div class="flex flex-row items-center space-x-2">
<.avatar color={:light_gray} name={partner.name} src={Uploaders.PartnerImage.url({partner.image, partner}, :original)} type={:company} size={:xs} />
<h1 class="text-lg font-semibold text-zinc-800"><%= partner.name %></h1>
Expand Down
4 changes: 2 additions & 2 deletions lib/atomic_web/live/profile_live/edit.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ defmodule AtomicWeb.ProfileLive.Edit do
{:noreply,
socket
|> put_flash(:info, "Email changed successfully.")
|> redirect(to: ~p"/profile/#{current_user}")}
|> redirect(to: ~p"/profile/#{socket.assigns.current_user}")}

:error ->
{:noreply,
socket
|> put_flash(:error, "Email change link is invalid or it has expired.")
|> redirect(to: ~p"/profile/#{current_user}")}
|> redirect(to: ~p"/profile/#{socket.assigns.current_user}")}
end
end
end

0 comments on commit 895a56e

Please sign in to comment.