fix: resolve wallet topup callback and verify flow, fix admin orders BigInt serialization 500 error, and fix reactive B2B settings toggle
Deploy Canina / deploy (push) Successful in 1m41s
Deploy Canina / deploy (push) Successful in 1m41s
This commit is contained in:
1 parent
42707c04cf
commit
b527befe4a
10 files changed
+176
-29
No files matched your search
@@ -38,6 +38,7 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
|
||||
|
||||
const fetchSettings = useSettingsStore((state) => state.fetchSettings);
|
||||
const getText = useSettingsStore((state) => state.getText);
|
||||
const isB2BEnabled = useSettingsStore((state) => state.getBoolean('b2bRegistrationOpen', true) && state.getBoolean('b2b_enabled', true));
|
||||
|
||||
useEffect(() => {
|
||||
fetchSettings();
|
||||
@@ -105,7 +106,7 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
|
||||
</main>
|
||||
<Footer onNavigate={handleNavigate} onShopNavigate={navigateToShop} onB2BOpen={() => setB2BPortalOpen(true)} />
|
||||
|
||||
{isB2BPortalOpen && useSettingsStore.getState().getBoolean('b2bRegistrationOpen', true) && useSettingsStore.getState().getBoolean('b2b_enabled', true) && (
|
||||
{isB2BPortalOpen && isB2BEnabled && (
|
||||
<B2BPortal onClose={() => setB2BPortalOpen(false)} />
|
||||
)}
|
||||
<CartDrawer
|
||||
|
||||
Reference in new issue
Block a user