chore: update user checks

This commit is contained in:
Steven 2023-11-08 22:58:35 +08:00
parent 65a34ee41a
commit 6c433b452f

View File

@ -52,6 +52,10 @@ const UsageHeatMap = () => {
const [currentStat, setCurrentStat] = useState<DailyUsageStat | null>(null);
const containerElRef = useRef<HTMLDivElement>(null);
if (!user) {
return;
}
useEffect(() => {
userV1Store.getOrFetchUserByUsername(extractUsernameFromName(user.name)).then((user) => {
if (!user) {