pl-fe: do not prefetch custom emojis when unauthenticated

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2024-12-06 15:22:34 +01:00
parent 1800b73359
commit 985234b5c4

View File

@ -387,6 +387,8 @@ const UI: React.FC<IUI> = ({ children }) => {
const loadAccountData = () => {
if (!account) return;
prefetchCustomEmojis(client);
dispatch(fetchDraftStatuses());
dispatch(fetchHomeTimeline());
@ -445,7 +447,6 @@ const UI: React.FC<IUI> = ({ children }) => {
// The user has logged in
useEffect(() => {
loadAccountData();
prefetchCustomEmojis(client);
}, [!!account]);
useEffect(() => {