mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-19 17:46:33 +00:00
fix viewing profile without profile event
This commit is contained in:
parent
1c72154100
commit
db1c4afb26
@ -20,7 +20,7 @@ import Stats from './Stats';
|
||||
|
||||
const ProfileCard = (props: { hexPub: string; npub: string }) => {
|
||||
const { hexPub, npub } = props;
|
||||
const [profile, setProfile] = useState<any>(SocialNetwork.profiles.get(ID(hexPub)));
|
||||
const [profile, setProfile] = useState<any>(SocialNetwork.profiles.get(ID(hexPub)) || {});
|
||||
const [lightning, setLightning] = useState<string>('');
|
||||
const [website, setWebsite] = useState<string>('');
|
||||
const [loggedIn, setLoggedIn] = useState<boolean>(false);
|
||||
|
Loading…
Reference in New Issue
Block a user