mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #2430 from paulkaplan/fix-shared-date-display
Use falsey check for shareDate instead of checking for null.
This commit is contained in:
commit
3bda6a4a4e
1 changed files with 2 additions and 3 deletions
|
@ -16,15 +16,14 @@ const Subactions = props => (
|
|||
<div className="copyleft">©</div>
|
||||
{' '}
|
||||
{/* eslint-disable react/jsx-sort-props */}
|
||||
{props.shareDate === null ?
|
||||
'Unshared' :
|
||||
{props.shareDate ? (
|
||||
<FormattedDate
|
||||
value={Date.parse(props.shareDate)}
|
||||
day="2-digit"
|
||||
month="short"
|
||||
year="numeric"
|
||||
/>
|
||||
}
|
||||
) : 'Unshared'}
|
||||
{/* eslint-enable react/jsx-sort-props */}
|
||||
</div>
|
||||
<FlexRow className="action-buttons">
|
||||
|
|
Loading…
Reference in a new issue