Skip to content

Commit d66d521

Browse files
committed
filter out bounties without solver when onboarding dev, fix KeyError
1 parent 63cf0b6 commit d66d521

File tree

1 file changed

+1
-0
lines changed
  • lib/algora_web/live/onboarding

1 file changed

+1
-0
lines changed

lib/algora_web/live/onboarding/dev.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ defmodule AlgoraWeb.Onboarding.DevLive do
1414
bounties =
1515
[status: :paid, limit: 50, solver_country: socket.assigns.current_country]
1616
|> Bounties.list_bounties()
17+
|> Enum.filter(&Map.get(&1, :solver))
1718
|> Enum.uniq_by(& &1.solver.id)
1819

1920
{:ok,

0 commit comments

Comments
 (0)