From 2b12a86cd908bf713d8c19266c99cb97301fa736 Mon Sep 17 00:00:00 2001 From: Larvitar Date: Thu, 26 Dec 2019 21:30:56 +0100 Subject: [PATCH] Fix for commit d111e8c Fix commit d111e8c from PR #641 as it would sometimes break the card and year would not be displayed at all. --- src/components/cardbuilder/cardBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/cardbuilder/cardBuilder.js b/src/components/cardbuilder/cardBuilder.js index c211cbc598..44c5b3b079 100644 --- a/src/components/cardbuilder/cardBuilder.js +++ b/src/components/cardbuilder/cardBuilder.js @@ -893,7 +893,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'focusMana if (item.EndDate && item.ProductionYear) { var endYear = datetime.parseISO8601Date(item.EndDate).getFullYear(); - lines.push(item.ProductionYear + (endYear === item.ProductionYear) ? '' : (' - ' + endYear)); + lines.push(item.ProductionYear + ((endYear === item.ProductionYear) ? '' : (' - ' + endYear))); } else { lines.push(item.ProductionYear || ''); }