Skip to content

Commit 7a594b2

Browse files
ensure profile is persisted
1 parent cac9ab0 commit 7a594b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/hacker_dashboard_portal/app/views/plutonium/_resource_header.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name: current_user&.profile&.name,
1010
email: current_user&.email,
1111
) do |nav|
12-
if current_user.profile
12+
if current_user.profile&.persisted?
1313
nav.with_section do |section|
1414
section.with_link(
1515
label: 'My profile',
@@ -18,7 +18,7 @@
1818
end
1919
end
2020

21-
if current_user.team
21+
if current_user.team&.persisted?
2222
nav.with_section do |section|
2323
section.with_link(
2424
label: 'My team',

0 commit comments

Comments
 (0)