Fix readSet type on empty team
This commit is contained in:
parent
fe43676c32
commit
368f175db0
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ export function useTeamMessagesRead(teamName: string): {
|
|||
const readSet = useMemo(
|
||||
() => {
|
||||
if (version < 0) return new Set<string>();
|
||||
return teamName ? getReadSetStorage(teamName) : new Set();
|
||||
return teamName ? getReadSetStorage(teamName) : new Set<string>();
|
||||
},
|
||||
[teamName, version]
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue