]> Untitled Git - lemmy.git/commitdiff
Fix user settings sort not working. Fixes #1050
authorDessalines <tyhou13@gmx.com>
Sun, 2 Aug 2020 14:33:14 +0000 (10:33 -0400)
committerDessalines <tyhou13@gmx.com>
Sun, 2 Aug 2020 14:33:14 +0000 (10:33 -0400)
ui/src/components/sort-select.tsx
ui/src/components/user.tsx

index 12dcb4cb6e629722a5807f88f26aba157b1bef7d..8d0b29a3c4acefc6ff0ac1b9b376767be6b374be 100644 (file)
@@ -65,6 +65,6 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
   }
 
   handleSortChange(i: SortSelect, event: any) {
-    i.props.onChange(event.target.value);
+    i.props.onChange(Number(event.target.value));
   }
 }
index d4e689c81a0fe3dbf3ac4608aa90820225d28fdd..8f0b5178844ea309e6acd2381ee0b9a2e939af6f 100644 (file)
@@ -152,9 +152,6 @@ export class User extends Component<any, UserState> {
     this.handleUserSettingsListingTypeChange = this.handleUserSettingsListingTypeChange.bind(
       this
     );
-    this.handleUserSettingsListingTypeChange = this.handleUserSettingsListingTypeChange.bind(
-      this
-    );
     this.handlePageChange = this.handlePageChange.bind(this);
     this.handleUserSettingsBioChange = this.handleUserSettingsBioChange.bind(
       this