Skip to content

Commit 19d49da

Browse files
committed
Refactor form tag
`<.form for=...` is used for Ecto but not needed for this static case
1 parent 546e743 commit 19d49da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/mjw_web/live/game_live/show.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ defmodule MjwWeb.GameLive.Show do
208208
class="phx-modal seat-offering-modal blurred relative"
209209
>
210210
<div class="phx-modal-content seat-offering-modal-content">
211-
<.form for={%{}} id="seat-offering-form" phx-target="#game" phx-submit="accept_seat_offering">
211+
<form id="seat-offering-form" phx-target="#game" phx-submit="accept_seat_offering">
212212
<div class="text-4xl">
213213
<h2>Have a seat! 🪑</h2>
214214
</div>
@@ -235,7 +235,7 @@ defmodule MjwWeb.GameLive.Show do
235235
<div class="pt-8">
236236
<.button type="submit" class="sit-button" phx-disable-with="Sitting...">Sit</.button>
237237
</div>
238-
</.form>
238+
</form>
239239
</div>
240240
</div>
241241
"""

0 commit comments

Comments
 (0)