diff --git a/lib/philomena_web/controllers/admin/advert_controller.ex b/lib/philomena_web/controllers/admin/advert_controller.ex index e058ce26..12b1dfbe 100644 --- a/lib/philomena_web/controllers/admin/advert_controller.ex +++ b/lib/philomena_web/controllers/admin/advert_controller.ex @@ -34,7 +34,7 @@ defmodule PhilomenaWeb.Admin.AdvertController do |> put_flash(:info, "Advert was successfully created.") |> redirect(to: ~p"/admin/adverts") - {:error, :advert, changeset, _changes} -> + {:error, changeset} -> render(conn, "new.html", changeset: changeset) end end