Feeding hide network checkbox
This commit is contained in:
parent
255f9cd6d1
commit
d3e9b283eb
1 changed files with 1 additions and 2 deletions
|
@ -244,7 +244,6 @@ const EditProfile: React.FC = () => {
|
||||||
|
|
||||||
const handleHideNetworkChange: React.ChangeEventHandler<HTMLInputElement> = e => {
|
const handleHideNetworkChange: React.ChangeEventHandler<HTMLInputElement> = e => {
|
||||||
const hide = e.target.checked;
|
const hide = e.target.checked;
|
||||||
|
|
||||||
setData(prevData => {
|
setData(prevData => {
|
||||||
return {
|
return {
|
||||||
...prevData,
|
...prevData,
|
||||||
|
@ -408,7 +407,7 @@ const EditProfile: React.FC = () => {
|
||||||
hint={<FormattedMessage id='edit_profile.hints.hide_network' defaultMessage='Who you follow and who follows you will not be shown on your profile' />}
|
hint={<FormattedMessage id='edit_profile.hints.hide_network' defaultMessage='Who you follow and who follows you will not be shown on your profile' />}
|
||||||
>
|
>
|
||||||
<Toggle
|
<Toggle
|
||||||
checked={account ? hidesNetwork(account) : false}
|
checked={account ? (data.hide_followers && data.hide_follows && data.hide_followers_count && data.hide_follows_count) : false}
|
||||||
onChange={handleHideNetworkChange}
|
onChange={handleHideNetworkChange}
|
||||||
/>
|
/>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
|
Loading…
Reference in a new issue