diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index efc14af..11f1544 100644 --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -77,6 +77,7 @@ const ProfilePage = () => { const lockRef = useRef(false); const onProfileChange = (index: number) => { + if (index === profiles.current || lockRef.current) return; if (lockRef.current) return; lockRef.current = true; putProfiles(index)