@if (favoriteAuthors.hasValue()) {

{{t('title')}}

@let favAuthors = favoriteAuthors.value(); @let mostReadAuthorValue = mostReadAuthor(); @if (mostReadAuthorValue) {
{{t('sub-title', {name: userName(), author: mostReadAuthor()?.authorName, count: mostReadCount()})}}
} @else if (!favoriteAuthors.isLoading()) {
{{t('no-data')}}
} @for (fAuthor of favAuthors; track fAuthor.authorName + fAuthor.authorId) {
{{ fAuthor.authorName }}
{{ fAuthor.totalChaptersRead }} Chapters
@for (chapter of fAuthor.chapters; track chapter.chapterId) {
}
} @empty { } }