Skip to content

Commit d9776ce

Browse files
committed
fix: add current_org.handle check in org dashboard
1 parent 6428645 commit d9776ce

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
@@ -1173,7 +1173,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
11731173
{&create_bounty_status/1, "Create a bounty", nil},
11741174
{&reward_bounty_status/1, "Reward a bounty", nil},
11751175
{&create_contract_status/1, "Contract a developer",
1176-
[patch: ~p"/#{current_org.handle}/dashboard?action=create_contract"]},
1176+
if(current_org.handle, do: [patch: ~p"/#{current_org.handle}/dashboard?action=create_contract"])},
11771177
{&share_with_friend_status/1, "Share Algora with a friend", nil}
11781178
]
11791179

0 commit comments

Comments
 (0)