diff --git a/lib/philomena_web/controllers/admin/badge/image_controller.ex b/lib/philomena_web/controllers/admin/badge/image_controller.ex index ab350fb7..abdac0a2 100644 --- a/lib/philomena_web/controllers/admin/badge/image_controller.ex +++ b/lib/philomena_web/controllers/admin/badge/image_controller.ex @@ -14,7 +14,7 @@ defmodule PhilomenaWeb.Admin.Badge.ImageController do def update(conn, %{"badge" => badge_params}) do case Badges.update_badge_image(conn.assigns.badge, badge_params) do - {:ok, %{badge: _badge}} -> + {:ok, _badge} -> conn |> put_flash(:info, "Badge updated successfully.") |> redirect(to: Routes.admin_badge_path(conn, :index))