fixed cache state import bug/typo

This commit is contained in:
Nouman Tahir 2023-01-22 19:47:32 +05:00
parent bfd3f1a687
commit 41f2a101f0

View File

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