diff --git a/src/pages/settings/preference.tsx b/src/pages/settings/preference.tsx index 82c84ee..cb41186 100644 --- a/src/pages/settings/preference.tsx +++ b/src/pages/settings/preference.tsx @@ -21,12 +21,14 @@ export const PreferencesSetting = () => { useEffect(() => { if (user?.pubkey) { + const hexPubkey = user.pubkey as string fetchEventFromUserRelays( { kinds: [NDKKind.AppSpecificData], - '#d': ['degmods'] + '#d': ['degmods'], + authors: [hexPubkey] }, - user.pubkey as string, + hexPubkey, UserRelaysType.Both ).then((event) => { if (event) { @@ -119,6 +121,7 @@ export const PreferencesSetting = () => { className='CheckboxMain' name='notificationsSettings' checked + readOnly />