Skip to content

Commit 00167c1

Browse files
committed
closure fix
1 parent 918f056 commit 00167c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/checkout/src/hooks/useTransactionCounter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const useTransactionCounter = () => {
1515
}
1616

1717
const incrementTransactionCount = () => {
18-
setCurrentTransactionNumber(currentTransactionNumber + 1)
18+
setCurrentTransactionNumber(prev => prev + 1)
1919
}
2020

2121
const isTransactionCounterInitialized = maxTransactions > 0

0 commit comments

Comments
 (0)