diff --git a/web/src/lib/utils/cast/gcast-destination.svelte.ts b/web/src/lib/utils/cast/gcast-destination.svelte.ts index f101c504f0..8e72c71e0b 100644 --- a/web/src/lib/utils/cast/gcast-destination.svelte.ts +++ b/web/src/lib/utils/cast/gcast-destination.svelte.ts @@ -27,7 +27,7 @@ export class GCastDestination implements ICastDestination { async initialize(): Promise { const preferencesStore = get(preferences); - if (!preferencesStore.cast.gCastEnabled) { + if (!preferencesStore || !preferencesStore.cast.gCastEnabled) { this.isAvailable = false; return false; }