Merge branch 'fix-edit-profile' into 'develop'

Fix edit profile

Closes #1451

See merge request soapbox-pub/soapbox!2585
This commit is contained in:
Alex Gleason 2023-06-30 17:18:41 +00:00
commit bdf81b1d39

View file

@ -188,7 +188,7 @@ const EditProfile: React.FC = () => {
useEffect(() => {
if (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);
setMuteStrangers(strangerNotifications);
}