Skip to content

Commit

Permalink
fix: change atom to success on put_flash
Browse files Browse the repository at this point in the history
  • Loading branch information
douglastofoli committed Mar 4, 2024
1 parent e8c42a3 commit dfce4c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ defmodule PescarteWeb.Pesquisa.RelatorioLive.FormComponent do

{:noreply,
socket
|> put_flash(:info, "Relatório atualizado com sucesso!")
|> put_flash(:success, "Relatório atualizado com sucesso!")
|> push_patch(to: socket.assigns.patch)}

{:error, %Ecto.Changeset{} = changeset} ->
Expand All @@ -126,7 +126,7 @@ defmodule PescarteWeb.Pesquisa.RelatorioLive.FormComponent do

{:noreply,
socket
|> put_flash(:info, "Relatório criado com sucesso")
|> put_flash(:success, "Relatório criado com sucesso")
|> push_patch(to: socket.assigns.patch)}

{:error, %Ecto.Changeset{} = changeset} ->
Expand Down

0 comments on commit dfce4c0

Please sign in to comment.