This commit is contained in:
Untone 2024-02-21 14:59:40 +03:00
parent 7af3f1d405
commit fa594b6009
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ export const AuthorBadge = (props: Props) => {
</Match>
<Match when={props.author?.stat && props.author?.stat.shouts > 0}>
<div class={styles.bio}>
{t('PublicationsWithCount', { count: props.author.stat?.shouts ?? 0 })}
{t('PublicationsWithCount', { count: props.author?.stat.shouts ?? 0 })}
</div>
</Match>
</Switch>

View File

@ -75,7 +75,7 @@ export const TopicBadge = (props: Props) => {
when={props.topic.body}
fallback={
<div class={styles.description}>
{t('PublicationsWithCount', { count: props.topic.stat.shouts ?? 0 })}
{t('PublicationsWithCount', { count: props.topic?.stat?.shouts ?? 0 })}
</div>
}
>