Fix error with unset variable

This commit is contained in:
Uku Taht 2020-08-19 14:43:32 +03:00
parent 843f3e166e
commit 6502c1615c

View File

@ -253,7 +253,10 @@ defmodule PlausibleWeb.AuthController do
|> redirect(to: "/settings")
{:error, changeset} ->
render(conn, "user_settings.html", changeset: changeset)
render(conn, "user_settings.html",
changeset: changeset,
subscription: conn.assigns[:current_user].subscription
)
end
end