Compare commits

...

2 Commits

Author SHA1 Message Date
Linca 2417e850e7 Merge branch 'refactor/isSignedIn' into 'develop'
refactor: make isSignedIn a function

Co-authored-by: Lhcfl <Lhcfl@outlook.com>

See merge request firefish/firefish!10758
2024-04-22 03:02:47 +00:00
Lhcfl a49f9c33ef chore: format 2024-04-22 11:02:35 +08:00
1 changed files with 1 additions and 1 deletions

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) ? stream.useChannel("main") : null;
const connection = isSignedIn(me) ? stream.useChannel("main") : null;
export class Storage<T extends StateDef> {
public readonly key: string;