dont-hesitate

This commit is contained in:
Untone 2024-02-15 22:47:02 +03:00
parent 94c5e5d51d
commit 54ef10307e

View File

@ -28,7 +28,7 @@ export const RatingControl = (props: RatingControlProps) => {
const [isLoading, setIsLoading] = createSignal(false)
const [ratings, setRatings] = createSignal<Reaction[]>([])
const [myRate, setMyRate] = createSignal<Reaction | undefined>()
const [total, setTotal] = createSignal(0)
const [total, setTotal] = createSignal(props.comment?.stat?.rating || props.shout?.stat?.rating || 0)
createEffect(
on(