Skip to content
Snippets Groups Projects
Commit 4f56c385 authored by GyDi's avatar GyDi
Browse files

fix: null type error

parent 240f4dcf
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ const ProfilePage = () => {
useEffect(() => {
if (profiles.current == null) return;
if (!profiles.items) profiles.items = [];
const profile = profiles.items![profiles.current];
if (!profile) return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment