@campnetwork/origin 1.2.0-4 → 1.2.0
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/README.md +12 -224
- package/dist/core.cjs +73 -251
- package/dist/core.d.ts +1 -197
- package/dist/core.esm.d.ts +1 -197
- package/dist/core.esm.js +89 -266
- package/dist/react/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/react/index.esm.js
CHANGED
|
@@ -3241,7 +3241,7 @@ const validateDuration = (duration, licenseDurationUnit) => {
|
|
|
3241
3241
|
const validateRoyaltyBps = (royaltyBps) => {
|
|
3242
3242
|
if (royaltyBps && royaltyBps.trim() !== "") {
|
|
3243
3243
|
const bps = Math.floor(parseFloat(royaltyBps) * 100);
|
|
3244
|
-
return
|
|
3244
|
+
return bps >= constants.MIN_ROYALTY_BPS && bps <= constants.MAX_ROYALTY_BPS;
|
|
3245
3245
|
}
|
|
3246
3246
|
else {
|
|
3247
3247
|
return false;
|