mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Fix fetch info on app start and ref link
This commit is contained in:
parent
dd72b937a2
commit
bf30a99fd3
@ -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]);
|
||||
|
@ -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: (
|
||||
|
Loading…
Reference in New Issue
Block a user