Fix dislike count (#388)

This commit is contained in:
Megidd 2022-01-31 22:35:37 +03:30 committed by GitHub
parent 6b6662420f
commit 2dbd97cb22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,8 @@ import { PageActions, MediaPageActions } from '../../utils/actions/';
import { CircleIconButton, MaterialIcon } from '../_shared/';
export function MediaDislikeIcon() {
const [dislikedMedia, setDislikedMedia] = useState(MediaPageStore.get('user-liked-media'));
const [dislikesCounter, setDislikesCounter] = useState(formatViewsNumber(MediaPageStore.get('media-likes'), false));
const [dislikedMedia, setDislikedMedia] = useState(MediaPageStore.get('user-disliked-media'));
const [dislikesCounter, setDislikesCounter] = useState(formatViewsNumber(MediaPageStore.get('media-dislikes'), false));
function updateStateValues() {
setDislikedMedia(MediaPageStore.get('user-disliked-media'));