routes: distance filter disabled in some cases

This commit is contained in:
muerwre 2018-12-13 10:22:19 +07:00
parent 8248d9f166
commit 008acbbfd7
2 changed files with 2 additions and 1 deletions

View file

@ -90,6 +90,7 @@ class Component extends React.Component<Props> {
onChange={this.props.searchSetDistance}
defaultValue={distance}
pushable={20}
disabled={list.length === 0 || min >= max}
/>
</div>

View file

@ -227,7 +227,7 @@ export const INITIAL_STATE = {
author: '',
tab: 'mine',
min: 0,
max: 300,
max: 0,
}
},
};