Skip to content

Commit 8904487

Browse files
committed
fix: handle nil case
1 parent 8120595 commit 8904487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algora_web/live/org/dashboard_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
685685
:main_contract_form,
686686
%ContractForm{
687687
marketplace?: marketplace? == "true",
688-
contractor: match.user || developer
688+
contractor: match[:user] || developer
689689
}
690690
|> ContractForm.changeset(%{
691691
amount: if(hourly_rate, do: Money.mult!(hourly_rate, hours_per_week)),

0 commit comments

Comments
 (0)