     current_user = socket.assigns.current_user
 
     if user_id == current_user.id do
-      {:ok, set_active_time_entry(socket, user_id)}
+      socket = set_active_time_entry(socket, user_id)
+
+      {:ok, %{time_entry: socket.assigns.time_entry}, socket}
     else
       {:error, %{reason: "Invalid user"}}
     end
   end
+
+  def handle_in("time_entry:current", _params, socket), do: {:reply, {:ok, socket.assigns.time_entry}, socket}
 
   def handle_in("time_entry:start",
   %{

    {:reply, {:ok, time_entry}, socket}
  end

  defp set_active_time_entry(socket, user_id) do
    case TimerMonitor.info(user_id) do
      %{time_entry_id: time_entry_id} ->
        time_entry = Repo.get! TimeEntry, time_entry_id

        assign(socket, :time_entry, %{id: time_entry_id})
      {:error, :invalid_timer} ->
        socket
    end
  end
end

    "stopped_at" => stopped_at,
  }, socket) do
    current_user = socket.assigns.current_user
    {:ok, stopped_at} = Timex.DateFormat.parse(stopped_at, "{ISO}")

    time_entry = current_user
    |> assoc(:time_entries)
