Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e938138ff |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@panic/web-core",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "Core auth and utilities for panic.haus web applications",
|
||||
"type": "module",
|
||||
|
||||
@@ -76,6 +76,10 @@ export function useSidePanelMachine({
|
||||
}
|
||||
|
||||
const storedValue = localStorage.getItem(storageKey);
|
||||
if (storedValue == null || storedValue.trim() === '') {
|
||||
return defaultWidth;
|
||||
}
|
||||
|
||||
const parsed = Number(storedValue);
|
||||
if (!Number.isFinite(parsed)) {
|
||||
return defaultWidth;
|
||||
|
||||
Reference in New Issue
Block a user