From 461e632262a5ff16dd8b6ae3f52a5986b7a63b03 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 8 Jul 2019 23:16:06 -0400 Subject: [PATCH] fix: claim list not resetting after scrolling down --- src/ui/component/claimListDiscover/view.jsx | 16 +++++++++++++--- src/ui/scss/component/_main.scss | 5 ----- static/locales/en.json | 1 - 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/ui/component/claimListDiscover/view.jsx b/src/ui/component/claimListDiscover/view.jsx index f911e9e3c..b20b3ec5d 100644 --- a/src/ui/component/claimListDiscover/view.jsx +++ b/src/ui/component/claimListDiscover/view.jsx @@ -98,6 +98,10 @@ function ClaimListDiscover(props: Props) { return type === SEARCH_SORT_YOU ? __('Tags You Follow') : __('Channels You Follow'); } + function resetList() { + setPage(1); + } + const header = (

setTypeSort(e.target.value)} + onChange={e => { + resetList(); + setTypeSort(e.target.value); + }} > {SEARCH_TYPES.map(type => (