fix: heatmap popup showing after logging out (#761)

* fix for heatmap popup showing after logging out

* moved node.remove to component unmount

* Update web/src/components/UsageHeatMap.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>

Co-authored-by: M. Gschwandtner <84477901+OnlyPain-ctrl@users.noreply.github.com>
Co-authored-by: boojack <stevenlgtm@gmail.com>
This commit is contained in:
M. Gschwandtner 2022-12-17 04:10:06 +01:00 committed by GitHub
parent 83e5278b51
commit 1eec474007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,10 @@ const UsageHeatMap = () => {
.catch((error) => {
console.error(error);
});
return () => {
handleUsageStatItemMouseLeave();
};
}, [memos.length]);
const handleUsageStatItemMouseEnter = useCallback((event: React.MouseEvent, item: DailyUsageStat) => {