Unverified Commit 1eec4740 authored by M. Gschwandtner's avatar M. Gschwandtner Committed by GitHub

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: 's avatarboojack <stevenlgtm@gmail.com>
Co-authored-by: 's avatarM. Gschwandtner <84477901+OnlyPain-ctrl@users.noreply.github.com>
Co-authored-by: 's avatarboojack <stevenlgtm@gmail.com>
parent 83e5278b
...@@ -58,6 +58,10 @@ const UsageHeatMap = () => { ...@@ -58,6 +58,10 @@ const UsageHeatMap = () => {
.catch((error) => { .catch((error) => {
console.error(error); console.error(error);
}); });
return () => {
handleUsageStatItemMouseLeave();
};
}, [memos.length]); }, [memos.length]);
const handleUsageStatItemMouseEnter = useCallback((event: React.MouseEvent, item: DailyUsageStat) => { const handleUsageStatItemMouseEnter = useCallback((event: React.MouseEvent, item: DailyUsageStat) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment