This commit is contained in:
Pradeeppon01 2024-07-24 03:30:46 +05:30
parent 56f3422a84
commit d247442c8f
1 changed files with 6 additions and 5 deletions

View File

@ -270,11 +270,12 @@ const PlayGroundUpdated = () => {
console.log("current card index use effect ... ", currentCardIndex);
if (totalData) {
if (totalData.length > 0 && currentCardIndex < totalData.length) {
setIsLoading(true);
setTimeout(() => {
setCardData(totalData[currentCardIndex]);
setIsLoading(false);
}, 1000);
// setIsLoading(true);
// setTimeout(() => {
// setCardData(totalData[currentCardIndex]);
// setIsLoading(false);
// }, 1000);
}
}
}, [currentCardIndex]);