Skip to content

Commit

Permalink
fix(stripe-utils): use some instead of find
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite authored Dec 24, 2024
1 parent 17c7d21 commit 09f640e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/payments-plugin/src/stripe/stripe-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function currencyHasFractionPart(currencyCode: CurrencyCode): boolean {
currencyDisplay: 'symbol',
}).formatToParts(123.45);

return !!parts.find(p => p.type === 'fraction');
return parts.some(p => p.type === 'fraction');
}

/**
Expand Down

0 comments on commit 09f640e

Please sign in to comment.