From bf30a99fd3e5cdebfc43874db077df3a2123b204 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Thu, 17 Nov 2022 10:51:13 -0800 Subject: [PATCH] Fix fetch info on app start and ref link --- frontend/src/basic/Main.tsx | 6 +++++- frontend/src/components/Dialogs/Profile.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/basic/Main.tsx b/frontend/src/basic/Main.tsx index 98690f24..2b171a64 100644 --- a/frontend/src/basic/Main.tsx +++ b/frontend/src/basic/Main.tsx @@ -164,7 +164,11 @@ const Main = ({ settings, setSettings }: MainProps): JSX.Element => { }; useEffect(() => { - if (open.stats || open.coordinator) { + if ( + open.stats || + open.coordinator || + info.version == { major: null, minor: null, patch: null } + ) { fetchInfo(); } }, [open.stats, open.coordinator]); diff --git a/frontend/src/components/Dialogs/Profile.tsx b/frontend/src/components/Dialogs/Profile.tsx index 67bc9d92..30e936a0 100644 --- a/frontend/src/components/Dialogs/Profile.tsx +++ b/frontend/src/components/Dialogs/Profile.tsx @@ -356,7 +356,7 @@ const ProfileDialog = ({