fix: null type error

This commit is contained in:
GyDi 2021-12-29 01:01:22 +08:00
parent 240f4dcfb1
commit 4f56c38599

View File

@ -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;