mirror of
https://github.com/usememos/memos.git
synced 2024-12-18 16:41:44 +03:00
chore: update user checks
This commit is contained in:
parent
65a34ee41a
commit
6c433b452f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user