@@ -317,7 +317,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
317317 </ . section >
318318 < . section
319319 :if = { @ contributors != [ ] }
320- title = { "#{ header_prefix ( @ current_org ) } Contributors" }
320+ title = { "#{ header_prefix ( @ previewed_user ) } Contributors" }
321321 subtitle = "Share bounties, tips or contract opportunities with your top contributors "
322322 >
323323 < div class = "relative w-full overflow-auto max-h-[400px] scrollbar-thin " >
@@ -399,7 +399,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
399399 < div class = "flex flex-wrap items-start justify-between gap-4 lg:flex-nowrap " >
400400 < div >
401401 < h2 class = "text-2xl font-bold dark:text-white " >
402- { header_prefix ( @ current_org ) } Bounties
402+ { header_prefix ( @ previewed_user ) } Bounties
403403 </ h2 >
404404 < p class = "text-sm dark:text-gray-300 " >
405405 Create new bounties by commenting
@@ -461,7 +461,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
461461 </ div >
462462
463463 < . section
464- title = { "#{ header_prefix ( @ current_org ) } Ecosystem" }
464+ title = { "#{ header_prefix ( @ previewed_user ) } Ecosystem" }
465465 subtitle = "Help maintain and grow your ecosystem by creating bounties and tips in your dependencies "
466466 >
467467 < div class = "pt-8 flex flex-col gap-8 " >
@@ -2015,9 +2015,9 @@ defmodule AlgoraWeb.Org.DashboardLive do
20152015 """
20162016 end
20172017
2018- defp header_prefix ( current_org ) do
2019- case current_org . type do
2020- :organization -> current_org . name
2018+ defp header_prefix ( user ) do
2019+ case user . type do
2020+ :organization -> user . name
20212021 _ -> "Your"
20222022 end
20232023 end
0 commit comments