Explorar el Código

refactor(payments-plugin): Use some instead of find (#3292)

Twilight hace 1 año
padre
commit
ba3c87574d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/payments-plugin/src/stripe/stripe-utils.ts

+ 1 - 1
packages/payments-plugin/src/stripe/stripe-utils.ts

@@ -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');
 }
 
 /**