Update post-comments.tsx

This commit is contained in:
Pico2x 2022-10-05 11:53:59 +01:00
parent 83d9a1f3e2
commit e9050973e1

View File

@ -166,8 +166,8 @@ export function PostComment(props: {
)} )}
<Tipper <Tipper
comment={comment} comment={comment}
myTip={me ? tips[me.id] ?? 0 : 0} myTip={me ? tips?.[me.id] ?? 0 : 0}
totalTip={sum(Object.values(tips))} totalTip={sum(Object.values(tips ?? {}))}
/> />
</Row> </Row>
</div> </div>