File tree 1 file changed +8
-9
lines changed
src/main/frontend/src/components
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ class SeriesSaleItem extends React.PureComponent {
86
86
const hasTransactionUrl = ! ! sale . transactionUrl ;
87
87
const hasSecondPrice = ! ! sale . secondPrice ;
88
88
89
+ let priceInfo = `${ sale . firstPrice } \u00A0${ sale . firstCurrency } ` ;
90
+ if ( hasSecondPrice ) {
91
+ priceInfo += ` (${ sale . secondPrice } \u00A0${ sale . secondCurrency } )` ;
92
+ }
93
+
89
94
return (
90
95
< li id = { `series-sale-${ index } -info` } >
91
96
{ hasDate && sale . date }
@@ -101,15 +106,9 @@ class SeriesSaleItem extends React.PureComponent {
101
106
{ ' ' }
102
107
{ hasBuyer && ( l10n [ 't_sold_for' ] || 'for' ) }
103
108
{ ' ' }
104
- { hasTransactionUrl ?
105
- < a href = { sale . transactionUrl } id = { `series-sale-${ index } -transaction` } rel = "nofollow" >
106
- { `${ sale . firstPrice } \u00A0${ sale . firstCurrency } ` }
107
- { hasSecondPrice && ` (${ sale . secondPrice } \u00A0${ sale . secondCurrency } )` }
108
- </ a >
109
- : < React . Fragment >
110
- { `${ sale . firstPrice } \u00A0${ sale . firstCurrency } ` }
111
- { hasSecondPrice && ` (${ sale . secondPrice } \u00A0${ sale . secondCurrency } )` }
112
- </ React . Fragment >
109
+ { hasTransactionUrl
110
+ ? < a href = { sale . transactionUrl } id = { `series-sale-${ index } -transaction` } rel = "nofollow" > { priceInfo } </ a >
111
+ : priceInfo
113
112
}
114
113
{ hasCondition && ` (${ sale . condition !== 'CANCELLED' ? sale . condition : ( l10n [ 't_cancelled' ] || 'cancelled' ) } )` }
115
114
</ li >
You can’t perform that action at this time.
0 commit comments