StatusHoverCard: fix useEffect conditional

This commit is contained in:
Alex Gleason 2022-06-20 17:20:51 -05:00
parent f1f6892d92
commit c78e398dad
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -30,7 +30,7 @@ export const StatusHoverCard: React.FC<IStatusHoverCard> = ({ visible = true })
const targetRef = useAppSelector(state => state.status_hover_card.ref?.current);
useEffect(() => {
if (!status) {
if (statusId && !status) {
dispatch(fetchStatus(statusId));
}
}, [statusId, status]);