fix: set emojis when session available

This commit is contained in:
2023-07-31 10:00:40 +02:00
parent ecc54d5d3d
commit 438d72d188
2 changed files with 9 additions and 5 deletions

View File

@ -87,6 +87,8 @@ export function useLoginEvents(pubkey?: string, leaveOpen = false) {
const emojis = useUserEmojiPacks(pubkey, userEmojis);
useEffect(() => {
Login.setEmojis(emojis);
}, [emojis]);
if (session) {
Login.setEmojis(emojis);
}
}, [session, emojis]);
}