@@ -317,7 +317,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
317
317
</ . section >
318
318
< . section
319
319
:if = { @ contributors != [ ] }
320
- title = { "#{ header_prefix ( @ current_org ) } Contributors" }
320
+ title = { "#{ header_prefix ( @ previewed_user ) } Contributors" }
321
321
subtitle = "Share bounties, tips or contract opportunities with your top contributors "
322
322
>
323
323
< div class = "relative w-full overflow-auto max-h-[400px] scrollbar-thin " >
@@ -399,7 +399,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
399
399
< div class = "flex flex-wrap items-start justify-between gap-4 lg:flex-nowrap " >
400
400
< div >
401
401
< h2 class = "text-2xl font-bold dark:text-white " >
402
- { header_prefix ( @ current_org ) } Bounties
402
+ { header_prefix ( @ previewed_user ) } Bounties
403
403
</ h2 >
404
404
< p class = "text-sm dark:text-gray-300 " >
405
405
Create new bounties by commenting
@@ -461,7 +461,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
461
461
</ div >
462
462
463
463
< . section
464
- title = { "#{ header_prefix ( @ current_org ) } Ecosystem" }
464
+ title = { "#{ header_prefix ( @ previewed_user ) } Ecosystem" }
465
465
subtitle = "Help maintain and grow your ecosystem by creating bounties and tips in your dependencies "
466
466
>
467
467
< div class = "pt-8 flex flex-col gap-8 " >
@@ -2015,9 +2015,9 @@ defmodule AlgoraWeb.Org.DashboardLive do
2015
2015
"""
2016
2016
end
2017
2017
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
2021
2021
_ -> "Your"
2022
2022
end
2023
2023
end
0 commit comments