diff --git a/lib/osuuspuutarha/orders/order.ex b/lib/osuuspuutarha/orders/order.ex index 62a3921..26b5f4c 100644 --- a/lib/osuuspuutarha/orders/order.ex +++ b/lib/osuuspuutarha/orders/order.ex @@ -8,7 +8,7 @@ defmodule Osuuspuutarha.Orders.Order do field :email, :string field :even_weeks, :boolean, default: false field :fname, :string - field :is_member, :boolean, default: false + field :is_member, :boolean field :lname, :string field :location, Ecto.Enum, diff --git a/lib/osuuspuutarha_web/live/order_live/form_component.html.heex b/lib/osuuspuutarha_web/live/order_live/form_component.html.heex index d77855b..63f0492 100644 --- a/lib/osuuspuutarha_web/live/order_live/form_component.html.heex +++ b/lib/osuuspuutarha_web/live/order_live/form_component.html.heex @@ -66,7 +66,8 @@ [ "Liity jäseneksi (kertamaksu 50€)": :false, "Olen jo Livonsaaren Osuuspuutarhan jäsen": :true, - ] + ], + prompt: "Ei valintaa" %> <%= error_tag f, :is_member %>