Fix nil current shop in header
This commit is contained in:
@@ -200,7 +200,10 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="navbar-center-section">
|
||||
<%= Shop.current_shop.name %>
|
||||
<% shop = nil %>
|
||||
<% shop = current_shop if respond_to?(:current_shop) %>
|
||||
<% shop ||= Shop.current_shop if Shop.respond_to?(:current_shop) %>
|
||||
<%= shop&.name.to_s %>
|
||||
</div>
|
||||
<div class="navbar-right-section">
|
||||
<%# Connection Status %>
|
||||
|
||||
Reference in New Issue
Block a user