Merge branch 'fix-edit-profile' into 'develop'
Fix edit profile Closes #1451 See merge request soapbox-pub/soapbox!2585
This commit is contained in:
commit
bdf81b1d39
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ const EditProfile: React.FC = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (account) {
|
if (account) {
|
||||||
const credentials = accountToCredentials(account);
|
const credentials = accountToCredentials(account);
|
||||||
const strangerNotifications = account.getIn(['pleroma', 'notification_settings', 'block_from_strangers']) === true;
|
const strangerNotifications = account.pleroma?.notification_settings?.block_from_strangers === true;
|
||||||
setData(credentials);
|
setData(credentials);
|
||||||
setMuteStrangers(strangerNotifications);
|
setMuteStrangers(strangerNotifications);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue