Fix edit profile

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1451
This commit is contained in:
Alex Gleason 2023-06-30 11:52:37 -05:00
parent f7e82e2fc1
commit b8c42c9371
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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);
} }