diff --git a/lib/flick_web/live/ballots/viewer_live.ex b/lib/flick_web/live/ballots/viewer_live.ex index 773939d..eb9dcfb 100644 --- a/lib/flick_web/live/ballots/viewer_live.ex +++ b/lib/flick_web/live/ballots/viewer_live.ex @@ -30,7 +30,8 @@ defmodule FlickWeb.Ballots.ViewerLive do defp assign_votes(socket) do %{ballot: ballot} = socket.assigns votes = RankedVoting.list_votes_for_ballot_id(ballot.id) - assign(socket, votes: votes) + vote_report = RankedVoting.get_vote_report(ballot.id) + assign(socket, votes: votes, vote_report: vote_report) end @impl Phoenix.LiveView @@ -151,13 +152,17 @@ defmodule FlickWeb.Ballots.ViewerLive do <% end %> -
A table showing the tallied vote results would go here.
+