diff --git a/src/lib/pages/frontsite/SelfCheckout/ManualCheckout.js b/src/lib/pages/frontsite/SelfCheckout/ManualCheckout.js index 827974ab8..654670711 100644 --- a/src/lib/pages/frontsite/SelfCheckout/ManualCheckout.js +++ b/src/lib/pages/frontsite/SelfCheckout/ManualCheckout.js @@ -8,7 +8,7 @@ export class ManualCheckout extends React.Component { super(props); this.state = { - manualBarcode: null, + manualBarcode: '', }; this.inputRef = React.createRef(); } @@ -22,14 +22,14 @@ export class ManualCheckout extends React.Component { } render() { - const { show, onChange, label } = this.props; + const { show, onBarcodeInput, label } = this.props; const { manualBarcode } = this.state; if (show) { return (
- {label} Add the barcode manually: + {label} Insert the barcode manually:
this.setState({ manualBarcode: e.target.value })} + value={manualBarcode} + onChange={(e) => + this.setState({ manualBarcode: e.target.value?.toUpperCase() }) + } />