ecotransac-shared-js 1.1.52 → 1.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -129,7 +129,7 @@ var getAgencyFees = (mandate) => {
|
|
|
129
129
|
const netPrice = getNetPrice(mandate);
|
|
130
130
|
const isLowPrice = getIsLowPrice(mandate);
|
|
131
131
|
const { agencyFeePercentage, isForProfessionalUse } = mandate;
|
|
132
|
-
if (!isLowPrice &&
|
|
132
|
+
if (!isLowPrice && agencyFeePercentage === null)
|
|
133
133
|
throw new Error("Missing agencyFeePercentage for high price mandate");
|
|
134
134
|
const { limit, fees } = getLowThreshold(isForProfessionalUse);
|
|
135
135
|
if (netPrice < limit) return fees;
|
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var getAgencyFees = (mandate) => {
|
|
|
43
43
|
const netPrice = getNetPrice(mandate);
|
|
44
44
|
const isLowPrice = getIsLowPrice(mandate);
|
|
45
45
|
const { agencyFeePercentage, isForProfessionalUse } = mandate;
|
|
46
|
-
if (!isLowPrice &&
|
|
46
|
+
if (!isLowPrice && agencyFeePercentage === null)
|
|
47
47
|
throw new Error("Missing agencyFeePercentage for high price mandate");
|
|
48
48
|
const { limit, fees } = getLowThreshold(isForProfessionalUse);
|
|
49
49
|
if (netPrice < limit) return fees;
|