Skip to content

Commit a2cfeb0

Browse files
committed
feat: update contract status labels and remove unused reward contract function for clarity
1 parent 25e27ed commit a2cfeb0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/algora_web/live/org/dashboard_live.ex

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -973,8 +973,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
973973
{&install_app_status/1, "Install Algora in #{current_org.name}", nil},
974974
{&create_bounty_status/1, "Create a bounty", nil},
975975
{&reward_bounty_status/1, "Reward a bounty", nil},
976-
{&create_contract_status/1, "Create a contract", nil},
977-
{&reward_contract_status/1, "Reward a contract", nil},
976+
{&create_contract_status/1, "Contract a developer", nil},
978977
{&share_with_friend_status/1, "Share Algora with a friend", nil}
979978
]
980979

@@ -1044,13 +1043,6 @@ defmodule AlgoraWeb.Org.DashboardLive do
10441043
end
10451044
end
10461045

1047-
defp reward_contract_status(socket) do
1048-
case Enum.filter(socket.assigns.contracts, &(&1.status == :paid)) do
1049-
[] -> :upcoming
1050-
_ -> :completed
1051-
end
1052-
end
1053-
10541046
defp share_with_friend_status(_socket), do: :upcoming
10551047

10561048
defp developer_card(assigns) do

0 commit comments

Comments
 (0)