fix: linting cleanup, TS errors, mobile cookie banner and hero max-width
This commit is contained in:
@@ -46,7 +46,7 @@ export const useConsentStore = create<ConsentState>((set) => ({
|
||||
stored = JSON.stringify(newData);
|
||||
localStorage.setItem(CONSENT_KEY, stored);
|
||||
localStorage.removeItem(OLD_CONSENT_KEY);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// Ignore if parse fails
|
||||
}
|
||||
}
|
||||
@@ -63,7 +63,7 @@ export const useConsentStore = create<ConsentState>((set) => ({
|
||||
marketing: !!parsed.marketing,
|
||||
advertising: !!parsed.advertising,
|
||||
});
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// If parsing fails, show banner
|
||||
set({ isInitialized: true, isOpen: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user