Skip to content

Commit

Permalink
Merge pull request #404 from WatchItDev/app/refactor/quick-trasnsfer-…
Browse files Browse the repository at this point in the history
…amount

refactor: use setCurrentIndex instead of carousel.setCurrentIndex
  • Loading branch information
geolffreym authored Jan 10, 2025
2 parents ac58456 + f1404f8 commit a37662f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sections/finance/components/finance-quick-transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ export default function FinanceQuickTransfer({

// Handle onClick for carousel items
const handleCarouselClick = (index: number) => {
carousel.setCurrentIndex(index);
// When user clicks on a profile, set the currentIndex to that index in the carousel
setCurrentIndex(index);
};

// If the stored address changes or if we typed a valid custom address, check if it exists in the carousel
Expand Down

0 comments on commit a37662f

Please sign in to comment.