mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 20:21:35 +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(() => {
|
useEffect(() => {
|
||||||
if (open.stats || open.coordinator) {
|
if (
|
||||||
|
open.stats ||
|
||||||
|
open.coordinator ||
|
||||||
|
info.version == { major: null, minor: null, patch: null }
|
||||||
|
) {
|
||||||
fetchInfo();
|
fetchInfo();
|
||||||
}
|
}
|
||||||
}, [open.stats, open.coordinator]);
|
}, [open.stats, open.coordinator]);
|
||||||
|
@ -356,7 +356,7 @@ const ProfileDialog = ({
|
|||||||
<ListItemText secondary={t('Share to earn 100 Sats per trade')}>
|
<ListItemText secondary={t('Share to earn 100 Sats per trade')}>
|
||||||
<TextField
|
<TextField
|
||||||
label={t('Your referral link')}
|
label={t('Your referral link')}
|
||||||
value={host + '/ref/' + robot.referralCode}
|
value={host + '/robot/' + robot.referralCode}
|
||||||
size='small'
|
size='small'
|
||||||
InputProps={{
|
InputProps={{
|
||||||
endAdornment: (
|
endAdornment: (
|
||||||
|
Loading…
Reference in New Issue
Block a user