diff --git a/src/components/dialogs/MapListMoreDialog.jsx b/src/components/dialogs/MapListMoreDialog.jsx index ff3ceb9..561792a 100644 --- a/src/components/dialogs/MapListMoreDialog.jsx +++ b/src/components/dialogs/MapListMoreDialog.jsx @@ -90,6 +90,7 @@ class Component extends React.Component { onChange={this.props.searchSetDistance} defaultValue={distance} pushable={20} + disabled={list.length === 0 || min >= max} /> diff --git a/src/redux/user/reducer.js b/src/redux/user/reducer.js index bc6c2af..1287403 100644 --- a/src/redux/user/reducer.js +++ b/src/redux/user/reducer.js @@ -227,7 +227,7 @@ export const INITIAL_STATE = { author: '', tab: 'mine', min: 0, - max: 300, + max: 0, } }, };