Discovery fixes #2576
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ type Props = {
|
|||
export default function ClaimList(props: Props) {
|
||||
const { uris, headerAltControls, injectedItem, loading, persistedStorageKey, empty, meta, type, header } = props;
|
||||
const [currentSort, setCurrentSort] = usePersistedState(persistedStorageKey, SORT_NEW);
|
||||
const sortedUris = uris && currentSort === SORT_OLD ? uris.reverse() : uris;
|
||||
const sortedUris = uris && currentSort === SORT_NEW ? uris.slice().reverse() : uris;
|
||||
const hasUris = uris && !!uris.length;
|
||||
|
||||
function handleSortChange() {
|
||||
|
|
|
@ -294,4 +294,4 @@
|
|||
"Post": "Post",
|
||||
"Channel": "Channel",
|
||||
"No modifier provided after separator %s.": "No modifier provided after separator %s."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue