Skip to content

Commit 2ddc4f9

Browse files
committed
fix: deadline input
1 parent d5ad53f commit 2ddc4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algora_web/live/bounty_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ defmodule AlgoraWeb.BountyLive do
266266
bounty
267267
|> Bounty.settings_changeset(%{
268268
shared_with: shared_with,
269-
deadline: DateTime.new!(data.deadline, ~T[00:00:00], "Etc/UTC")
269+
deadline: if(data.deadline, do: DateTime.new!(data.deadline, ~T[00:00:00], "Etc/UTC"))
270270
})
271271
|> Repo.update() do
272272
{:noreply,

0 commit comments

Comments
 (0)