fixed link on archive episodes

This commit is contained in:
Benjamin Jones 2021-05-25 21:15:51 +02:00
parent 4121121ed7
commit 2a7499fc0e

View File

@ -211,7 +211,13 @@ export const VideoCard = ({
</Fragment> </Fragment>
)} )}
<P>{description}</P> <P>{description}</P>
<a href="webcal://cloud.undersco.re/remote.php/dav/public-calendars/9FzomgAfidHWCQcx/?export"> <a
href={
hasPassed
? videoUrl
: `webcal://cloud.undersco.re/remote.php/dav/public-calendars/${config.calendarId}/?export`
}
>
<Button> <Button>
{hasPassed ? translations.en.watchEpisode : translations.en.subEvent} {hasPassed ? translations.en.watchEpisode : translations.en.subEvent}
</Button> </Button>