Skip to content

Commit 839f504

Browse files
committed
style: use consistent style for a ternary operator.
1 parent 5e93367 commit 839f504

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/frontend/src/components/SeriesSalesList.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ class SeriesSaleItem extends React.PureComponent {
9797
{' '}
9898
<ParticipantLink url={sale.sellerUrl} name={sale.sellerName} />
9999
{' '}
100-
{ hasBuyer ?
101-
(l10n['t_sold_to'] || 'sold to')
100+
{ hasBuyer
101+
? (l10n['t_sold_to'] || 'sold to')
102102
: (l10n['t_was_selling'] || 'was selling for')
103103
}
104104
{' '}
@@ -121,8 +121,8 @@ class ParticipantLink extends React.PureComponent {
121121
const { name, url } = this.props;
122122
const hasUrl = !!url;
123123
return (
124-
hasUrl ?
125-
<a href={url} rel="nofollow">{ name }</a>
124+
hasUrl
125+
? <a href={url} rel="nofollow">{ name }</a>
126126
: name
127127
)
128128
}

0 commit comments

Comments
 (0)