From 6fe45fe890973007f64e2abb9ccf58db8ff4ed3d Mon Sep 17 00:00:00 2001 From: Conor Macpherson Date: Fri, 31 Mar 2023 13:38:37 -0400 Subject: [PATCH] lint. --- .../components/self_hosted_expansion_modal/expansion_card.tsx | 3 ++- .../src/components/self_hosted_expansion_modal/index.test.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/channels/src/components/self_hosted_expansion_modal/expansion_card.tsx b/webapp/channels/src/components/self_hosted_expansion_modal/expansion_card.tsx index 6eadd2de6e..47ecfa49aa 100644 --- a/webapp/channels/src/components/self_hosted_expansion_modal/expansion_card.tsx +++ b/webapp/channels/src/components/self_hosted_expansion_modal/expansion_card.tsx @@ -41,7 +41,7 @@ export default function SelfHostedExpansionCard(props: Props) { const getMonthsUntilExpiry = () => { const now = new Date(); - return (licenseExpiry.getMonth() - now.getMonth()) + 12 * (licenseExpiry.getFullYear() - now.getFullYear()); + return (licenseExpiry.getMonth() - now.getMonth()) + (MONTHS_IN_YEAR * (licenseExpiry.getFullYear() - now.getFullYear())); }; const getMonthlyPrice = () => { @@ -208,6 +208,7 @@ export default function SelfHostedExpansionCard(props: Props) {