Skip to content

Commit a8e63f2

Browse files
committed
Push and pray
1 parent a0765b2 commit a8e63f2

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

lib/peek_app_sdk/ui/odyssey/activity_picker.ex

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@ defmodule PeekAppSDK.UI.Odyssey.OdysseyActivityPicker do
1313
use Phoenix.LiveComponent
1414
use Phoenix.Component
1515

16-
@required_assigns ~w(field install_id)a
17-
1816
@impl true
1917
def mount(socket) do
20-
socket =
21-
socket
22-
|> assign(selection: nil)
23-
2418
{:ok, socket}
2519
end
2620

@@ -59,7 +53,7 @@ defmodule PeekAppSDK.UI.Odyssey.OdysseyActivityPicker do
5953
~H"""
6054
<div phx-hook="OdysseyActivityPicker" id={"#{@id}_hook"}>
6155
<!-- Hidden input for form value -->
62-
<input type="hidden" name={@field.name} value={@selection} />
56+
<input type="hidden" name={@field.name} value={@field.value} />
6357
6458
<!-- Odyssey product picker will be rendered here -->
6559
<div>
@@ -68,7 +62,7 @@ defmodule PeekAppSDK.UI.Odyssey.OdysseyActivityPicker do
6862
phx-update="ignore"
6963
title="Activity Picker"
7064
phx-target={@myself}
71-
ids={@selection}
65+
ids={@field.value}
7266
products={Jason.encode!(@products)}
7367
>
7468
</odyssey-product-picker>

0 commit comments

Comments
 (0)