This commit is contained in:
Lhcfl 2024-04-22 10:54:16 +08:00
parent c5a344c2a0
commit 29da813170

View file

@ -17,7 +17,7 @@ type StateDef = Record<
type ArrayElement<A> = A extends readonly (infer T)[] ? T : never;
const stream = useStream();
const connection = isSignedIn(me) ? null : stream.useChannel("main");
const connection = isSignedIn(me) ? stream.useChannel("main") : null;
export class Storage<T extends StateDef> {
public readonly key: string;