From b8c42c9371b6fee078cad057209757d6a7aa98a0 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 30 Jun 2023 11:52:37 -0500 Subject: [PATCH] Fix edit profile Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1451 --- app/soapbox/features/edit-profile/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/edit-profile/index.tsx b/app/soapbox/features/edit-profile/index.tsx index 721879068b..eef30bfd34 100644 --- a/app/soapbox/features/edit-profile/index.tsx +++ b/app/soapbox/features/edit-profile/index.tsx @@ -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); }