ProfileOverlay: fix contact render

Fixes urbit/landscape#630
This commit is contained in:
Liam Fitzgerald 2021-03-26 12:42:04 +10:00
parent 4af130ca2e
commit 6842cc0f15
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -57,10 +57,10 @@ const ProfileOverlay = (props: ProfileOverlayProps) => {
const innerRef = useRef<HTMLElement | null>(null);
const hideAvatars = useSettingsState(state => state.calm.hideAvatars);
const hideNicknames = useSettingsState(state => state.calm.hideNicknames);
const isOwn = useMemo(() => `~${window.ship}` === ship, [ship]);
const isOwn = useMemo(() => window.ship === ship, [ship]);
const contact = useContact(ship)
const color = uxToHex(contact?.color ?? '0x0');
const contact = useContact(`~${ship}`)
const color = `#${uxToHex(contact?.color ?? '0x0')}`;
const showNickname = useShowNickname(contact, hideNicknames);
const setClosed = useCallback(() => {