@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
21 lines (20 loc) • 425 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.checkForValidAmount = void 0;
const checkForValidAmount = ({
amount,
maxAmount,
minAmount
}) => {
if (maxAmount && amount > maxAmount) {
return maxAmount;
}
if (amount < minAmount) {
return minAmount;
}
return amount;
};
exports.checkForValidAmount = checkForValidAmount;
//# sourceMappingURL=amountControl.js.map