Skip to content

Commit b406b2b

Browse files
fix team membership role label
1 parent 34fd967 commit b406b2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hacker_dashboard_portal/app/views/hacker_dashboard_portal/dashboard/_team_dashboard.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</div>
4747
</div>
4848
<div>
49-
<p class="text-lg font-bold text-gray-900 dark:text-white"><%= team.role&.titleize || 'Member' %></p>
49+
<p class="text-lg font-bold text-gray-900 dark:text-white"><%= current_user.team_memberships.find_by(team: team)&.role&.titleize || 'Member' %></p>
5050
<p class="text-sm text-gray-600 dark:text-gray-300">Your Role</p>
5151
</div>
5252
</div>

0 commit comments

Comments
 (0)