Merge pull request #2595 from ecency/nt/votes-cache-fix

fixed cache state import bug/typo
This commit is contained in:
Feruz M 2023-01-22 22:02:54 +05:30 committed by GitHub
commit e266e4bafa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ const UpvoteContainer = (props) => {
const [isVoted, setIsVoted] = useState(null);
const [isDownVoted, setIsDownVoted] = useState(null);
const [totalPayout, setTotalPayout] = useState(get(content, 'total_payout'));
const cachedVotes = useAppSelector((state) => {});
const cachedVotes = useAppSelector((state) => state.cache.votes);
const lastCacheUpdate = useAppSelector((state) => state.cache.lastUpdate);
useEffect(() => {