This commit is contained in:
Sean Yesmunt 2020-01-22 10:52:16 -05:00
parent de974e8725
commit f92eb421ed

View file

@ -39,7 +39,6 @@ function ClaimTilesDiscover(props: Props) {
claimType, claimType,
timestamp, timestamp,
} = props; } = props;
// const [hasSearched, setHasSearched] = React.useState(false);
const options: { const options: {
page_size: number, page_size: number,
@ -86,12 +85,7 @@ function ClaimTilesDiscover(props: Props) {
if (shouldPerformSearch) { if (shouldPerformSearch) {
const searchOptions = JSON.parse(optionsStringForEffect); const searchOptions = JSON.parse(optionsStringForEffect);
doClaimSearch(searchOptions); doClaimSearch(searchOptions);
// setHasSearched(true);
} }
return () => {
// setHasSearched(false);
};
}, [doClaimSearch, shouldPerformSearch, optionsStringForEffect]); }, [doClaimSearch, shouldPerformSearch, optionsStringForEffect]);
return ( return (