Skip to content

Commit 92074da

Browse files
committed
fix: handle nil case
1 parent 55e2036 commit 92074da

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

0 commit comments

Comments
 (0)