Skip to content

Commit 13c4b2d

Browse files
committed
Apply code suggestions by Copilot
The suggestions make sense and I also have tested them locally.
1 parent e3eb6c3 commit 13c4b2d

File tree

1 file changed

+11
-9
lines changed
  • src/theme/UnsupportedVersionBanner

1 file changed

+11
-9
lines changed

src/theme/UnsupportedVersionBanner/index.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,17 @@ function FutureReleaseWarning({ versionData }) {
115115

116116
<br />
117117

118-
<Translate
119-
description="A message to inform of the code freeze date"
120-
id="documentation.support.freezeDate"
121-
values={{
122-
date: versionData.codeFreezeDate,
123-
}}
124-
>
125-
{' The code freeze date for this release is {date}.'}
126-
</Translate>
118+
{versionData.codeFreezeDate && (
119+
<Translate
120+
description="A message to inform of the code freeze date"
121+
id="documentation.support.freezeDate"
122+
values={{
123+
date: versionData.codeFreezeDate,
124+
}}
125+
>
126+
{'The code freeze date for this release is {date}.'}
127+
</Translate>
128+
)}
127129
</Admonition>
128130
);
129131
}

0 commit comments

Comments
 (0)