Fix fetch info on app start and ref link

This commit is contained in:
Reckless_Satoshi 2022-11-17 10:51:13 -08:00
parent dd72b937a2
commit bf30a99fd3
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 6 additions and 2 deletions

View File

@ -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]);

View File

@ -356,7 +356,7 @@ const ProfileDialog = ({
<ListItemText secondary={t('Share to earn 100 Sats per trade')}>
<TextField
label={t('Your referral link')}
value={host + '/ref/' + robot.referralCode}
value={host + '/robot/' + robot.referralCode}
size='small'
InputProps={{
endAdornment: (