Fix studio error in the movie header

This commit is contained in:
Zoe Roux 2023-03-11 19:59:38 +09:00
parent 91aa673dcb
commit e32c09f48f

View File

@ -190,6 +190,8 @@ const TitleLine = ({
}), }),
])} ])}
> >
{isLoading ||
(studio && (
<P <P
{...css({ {...css({
color: (theme: Theme) => theme.user.paragraph, color: (theme: Theme) => theme.user.paragraph,
@ -200,11 +202,12 @@ const TitleLine = ({
{isLoading ? ( {isLoading ? (
<Skeleton {...css({ width: rem(5) })} /> <Skeleton {...css({ width: rem(5) })} />
) : ( ) : (
<A href={`/studio/${studio!.slug}`} {...css({ color: (theme) => theme.user.link })}> <A href={`/studio/${studio.slug}`} {...css({ color: (theme) => theme.user.link })}>
{studio!.name} {studio.name}
</A> </A>
)} )}
</P> </P>
))}
</View> </View>
</Container> </Container>
); );