diff --git a/src/components/account.jsx b/src/components/account.jsx index 265db0e4..9230e394 100644 --- a/src/components/account.jsx +++ b/src/components/account.jsx @@ -3,6 +3,7 @@ import './account.css'; import { useEffect, useState } from 'preact/hooks'; import shortenNumber from '../utils/shorten-number'; +import store from '../utils/store'; import Avatar from './avatar'; import NameText from './name-text'; @@ -58,6 +59,11 @@ export default ({ account }) => { const [relationship, setRelationship] = useState(null); useEffect(() => { if (info) { + const currentAccount = store.session.get('currentAccount'); + if (currentAccount === id) { + // It's myself! + return; + } setRelationshipUIState('loading'); (async () => { try {