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