mirror of
https://github.com/Radarr/Radarr
synced 2025-12-15 21:03:27 +01:00
Fixed: Calendar can show incorrect Release Types
This commit is contained in:
parent
f1a00764cd
commit
2848899206
1 changed files with 3 additions and 3 deletions
|
|
@ -43,15 +43,15 @@ class CalendarEvent extends Component {
|
|||
const link = `/movie/${titleSlug}`;
|
||||
const eventType = [];
|
||||
|
||||
if (moment(date).isSame(moment(inCinemas), 'day')) {
|
||||
if (inCinemas && moment(date).isSame(moment(inCinemas), 'day')) {
|
||||
eventType.push('Cinemas');
|
||||
}
|
||||
|
||||
if (moment(date).isSame(moment(physicalRelease), 'day')) {
|
||||
if (physicalRelease && moment(date).isSame(moment(physicalRelease), 'day')) {
|
||||
eventType.push('Physical');
|
||||
}
|
||||
|
||||
if (moment(date).isSame(moment(digitalRelease), 'day')) {
|
||||
if (digitalRelease && moment(date).isSame(moment(digitalRelease), 'day')) {
|
||||
eventType.push('Digital');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue