@impl true
def mount(_conn, _session, socket) do
current_merchant = socket.assigns.current_merchant
form =
AshPhoenix.Form.for_action(current_merchant, :update_details,
as: "merchant",
api: Newco.Accounts,
actor: current_merchant
)
{:ok, assign(socket, form: form)}
end
@impl true
def mount(_conn, _session, socket) do
current_merchant = socket.assigns.current_merchant
form =
AshPhoenix.Form.for_action(current_merchant, :update_details,
as: "merchant",
api: Newco.Accounts,
actor: current_merchant
)
{:ok, assign(socket, form: form)}
end