Skip to content

Commit f663b5b

Browse files
committed
fix: handle nil case
1 parent f744686 commit f663b5b

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
@@ -648,7 +648,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
648648
:main_contract_form,
649649
%ContractForm{
650650
marketplace?: marketplace? == "true",
651-
contractor: match.user || developer
651+
contractor: match[:user] || developer
652652
}
653653
|> ContractForm.changeset(%{
654654
amount: if(hourly_rate, do: Money.mult!(hourly_rate, hours_per_week)),

0 commit comments

Comments
 (0)