feat: prevent click same
This commit is contained in:
parent
db4993ae9b
commit
6b3e7cbc08
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user