Skip to content

Commit

Permalink
refactor(payments-plugin): Use some instead of find (#3292)
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite authored Dec 30, 2024
1 parent 0bf4186 commit ba3c875
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 ba3c875

Please sign in to comment.