fix: theme undefined prevents settings page from loading

This commit is contained in:
Rotimi Best
2024-10-15 01:46:05 +01:00
parent 48a52af1c6
commit 033959cb82
2 changed files with 8 additions and 8 deletions
@@ -142,8 +142,8 @@
goto(`${$currentOrgPath}/settings${pathname}`);
}
function setHex(theme: string) {
if (hex || theme.includes('theme-')) return;
function setHex(theme?: string) {
if (!theme || hex || theme.includes('theme-')) return;
hex = theme;
}