Skip to content

Commit 76a67e1

Browse files
committed
fix: handle nil case
1 parent 3d81db6 commit 76a67e1

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
@@ -716,7 +716,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
716716
:main_contract_form,
717717
%ContractForm{
718718
marketplace?: marketplace? == "true",
719-
contractor: match.user || developer
719+
contractor: match[:user] || developer
720720
}
721721
|> ContractForm.changeset(%{
722722
amount: if(hourly_rate, do: Money.mult!(hourly_rate, hours_per_week)),

0 commit comments

Comments
 (0)