From e12ea9701d07220adea6c0200c7fad4c6edfcf94 Mon Sep 17 00:00:00 2001 From: hq1 Date: Tue, 17 Oct 2023 12:16:04 +0200 Subject: [PATCH] Fix master build (#3432) --- lib/plausible/auth/user.ex | 2 +- lib/plausible_web/components/generic.ex | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plausible/auth/user.ex b/lib/plausible/auth/user.ex index 7f6674f77..99a94e7c7 100644 --- a/lib/plausible/auth/user.ex +++ b/lib/plausible/auth/user.ex @@ -163,7 +163,7 @@ defmodule Plausible.Auth.User do Path.join(PlausibleWeb.Endpoint.url(), ["avatar/", hash]) end - + defp validate_email_changed(changeset) do if !get_change(changeset, :email) && !changeset.errors[:email] do add_error(changeset, :email, "can't be the same", validation: :different_email) diff --git a/lib/plausible_web/components/generic.ex b/lib/plausible_web/components/generic.ex index b3c0485f8..f00c227bd 100644 --- a/lib/plausible_web/components/generic.ex +++ b/lib/plausible_web/components/generic.ex @@ -127,6 +127,7 @@ defmodule PlausibleWeb.Components.Generic do attr :href, :string, required: true attr :new_tab, :boolean, default: false attr :class, :string, default: "" + attr :id, :any, default: nil slot :inner_block def unstyled_link(assigns) do