1
0
forked from Kieran/snort

bug: follows you

This commit is contained in:
Kieran 2023-04-04 19:20:14 +01:00
parent e69bd31a1c
commit dc27f4061d
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -98,12 +98,7 @@ export default function ProfilePage() {
const navigate = useNavigate();
const [id, setId] = useState<string>();
const user = useUserProfile(id);
const { publicKey: loginPubKey, follows } = useSelector((s: RootState) => {
return {
publicKey: s.login.publicKey,
follows: s.login.follows,
};
});
const loginPubKey = useSelector((s: RootState) => s.login.publicKey);
const isMe = loginPubKey === id;
const [showLnQr, setShowLnQr] = useState<boolean>(false);
const [showProfileQr, setShowProfileQr] = useState<boolean>(false);
@ -123,6 +118,7 @@ export default function ProfilePage() {
const pinned = usePinnedFeed(id);
const muted = useMutedFeed(id);
const badges = useProfileBadges(id);
const follows = useFollowsFeed(id);
// tabs
const ProfileTab = {
Notes: { text: formatMessage(messages.Notes), value: NOTES },