diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index efc14af72ac719dcc6c95d915c8f650431274830..11f15446993761b06fa39091d88e5e729ff12517 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)