diff --git a/ui/src/components/sort-select.tsx b/ui/src/components/sort-select.tsx index 12dcb4cb..8d0b29a3 100644 --- a/ui/src/components/sort-select.tsx +++ b/ui/src/components/sort-select.tsx @@ -65,6 +65,6 @@ export class SortSelect extends Component { } handleSortChange(i: SortSelect, event: any) { - i.props.onChange(event.target.value); + i.props.onChange(Number(event.target.value)); } } diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index d4e689c8..8f0b5178 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -152,9 +152,6 @@ export class User extends Component { this.handleUserSettingsListingTypeChange = this.handleUserSettingsListingTypeChange.bind( this ); - this.handleUserSettingsListingTypeChange = this.handleUserSettingsListingTypeChange.bind( - this - ); this.handlePageChange = this.handlePageChange.bind(this); this.handleUserSettingsBioChange = this.handleUserSettingsBioChange.bind( this