Fix edit profile
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1451
This commit is contained in:
parent
f7e82e2fc1
commit
b8c42c9371
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