fix(frontend/profile): if episode name is null, fallback to episode position + 1

This commit is contained in:
Kentai Radiquum 2024-05-16 02:51:53 +05:00
parent 8897aca6c9
commit 0ba93f96bc
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -221,7 +221,10 @@ export const UserProfile = (props) => {
id={item.id}
title={item.title_ru}
poster={item.image}
description={item.last_view_episode.name}
description={
item.last_view_episode.name ||
`${item.last_view_episode.position + 1} серия`
}
height={400}
/>
);