Skip to content
Snippets Groups Projects
Commit 6b3e7cbc authored by GyDi's avatar GyDi
Browse files

feat: prevent click same

parent db4993ae
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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