diff --git a/apps/fg_http/lib/fg_http_web/live/new_device_live.ex b/apps/fg_http/lib/fg_http_web/live/new_device_live.ex index dae31b3c0..5f4a96bed 100644 --- a/apps/fg_http/lib/fg_http_web/live/new_device_live.ex +++ b/apps/fg_http/lib/fg_http_web/live/new_device_live.ex @@ -18,6 +18,7 @@ defmodule FgHttpWeb.NewDeviceLive do end device = %Device{user_id: user_id} + {:ok, assign(socket, :device, device)} end diff --git a/apps/fg_http/test/fg_http_web/controllers/user_controller_test.exs b/apps/fg_http/test/fg_http_web/controllers/user_controller_test.exs index 0d8364c7a..738ae1ae5 100644 --- a/apps/fg_http/test/fg_http_web/controllers/user_controller_test.exs +++ b/apps/fg_http/test/fg_http_web/controllers/user_controller_test.exs @@ -98,6 +98,8 @@ defmodule FgHttpWeb.UserControllerTest do test "does nothing when password params are empty", %{authed_conn: conn} do test_conn = put(conn, Routes.user_path(conn, :update), user: @empty_update_password_attrs) + + assert redirected_to(test_conn) =~ Routes.user_path(test_conn, :show) end end