Skip to content

Commit

Permalink
fix timer ref in select playground
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Aug 15, 2024
1 parent c075516 commit 9341aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/support/select_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ defmodule Phoenix.LiveViewTest.E2E.SelectLive do
def handle_event("toggle-tick", _, socket) do
case socket.assigns.tick_timer do
nil ->
timer_ref = :timer.send_interval(1000, :tick)
{:ok, timer_ref} = :timer.send_interval(1000, :tick)
{:noreply, assign(socket, :tick_timer, timer_ref)}

ref ->
Expand Down

0 comments on commit 9341aaa

Please sign in to comment.