diff --git a/src/Options.jsx b/src/Options.jsx index 5e5fd790..6f9435bf 100644 --- a/src/Options.jsx +++ b/src/Options.jsx @@ -12,9 +12,9 @@ class Options extends React.Component { }; getValidValue() { - const { goInputText, current } = this.state; + const { goInputText } = this.state; // eslint-disable-next-line no-restricted-globals - return !goInputText || isNaN(goInputText) ? current : Number(goInputText); + return !goInputText || isNaN(goInputText) ? undefined : Number(goInputText); } buildOptionText = (value) => `${value} ${this.props.locale.items_per_page}`;