Fix nil current shop in header
This commit is contained in:
@@ -200,7 +200,10 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-center-section">
|
<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>
|
||||||
<div class="navbar-right-section">
|
<div class="navbar-right-section">
|
||||||
<%# Connection Status %>
|
<%# Connection Status %>
|
||||||
|
|||||||
Reference in New Issue
Block a user