Hi! Thanks for catching this. The correct code snippet to add is:
# lib/pento_web/live/wrong_live.ex
def mount(_params, session, socket) do
{
:ok,
assign(
socket,
score: 0,
message: "Guess a number.",
session_id: session["live_socket_id"],
current_user: Pento.Accounts.get_user_by_session_token(session["user_token"])
)
}
end
We’ll fix that in the next release