Fix nil current shop in header

This commit is contained in:
Zin Bo Thit
2026-09-03 10:23:44 +06:30
parent d79a6c5929
commit 75d32e4dad

View File

@@ -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 %>