@obolnetwork/obol-ui 1.0.10 → 1.0.11
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.es.js
CHANGED
|
@@ -1358,7 +1358,7 @@ TextFieldWithCopy.displayName = "TextFieldWithCopy";
|
|
|
1358
1358
|
|
|
1359
1359
|
var NumberField = forwardRef(function (_a, ref) {
|
|
1360
1360
|
var _b = _a.max, max = _b === void 0 ? 10 : _b, _c = _a.min, min = _c === void 0 ? 1 : _c, value = _a.value, onChangeValue = _a.onChangeValue;
|
|
1361
|
-
var _d = useState(value
|
|
1361
|
+
var _d = useState(value || min), qty = _d[0], setQty = _d[1];
|
|
1362
1362
|
var handleOnDec = function () {
|
|
1363
1363
|
if (qty <= min) {
|
|
1364
1364
|
setQty(min);
|
package/dist/index.js
CHANGED
|
@@ -1390,7 +1390,7 @@ TextFieldWithCopy.displayName = "TextFieldWithCopy";
|
|
|
1390
1390
|
|
|
1391
1391
|
var NumberField = React.forwardRef(function (_a, ref) {
|
|
1392
1392
|
var _b = _a.max, max = _b === void 0 ? 10 : _b, _c = _a.min, min = _c === void 0 ? 1 : _c, value = _a.value, onChangeValue = _a.onChangeValue;
|
|
1393
|
-
var _d = React.useState(value
|
|
1393
|
+
var _d = React.useState(value || min), qty = _d[0], setQty = _d[1];
|
|
1394
1394
|
var handleOnDec = function () {
|
|
1395
1395
|
if (qty <= min) {
|
|
1396
1396
|
setQty(min);
|