Skip to content

Commit

Permalink
added sugar content to the detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerie MacDougall authored and Valerie MacDougall committed Mar 9, 2018
1 parent 856007c commit 3dfdf9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wine_frontend/src/components/WineDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class WineDetail extends React.Component {
<img src={this.props.winechoice[i].image_url} style={imgSize} alt="Loading"/>
<ul>
<li>{'Producer Name: ' + this.props.winechoice[i].producer_name}</li>
<li>{'$ ' + (this.props.winechoice[i].price_in_cents)/100}</li>
<li>{'$ ' + Number(this.props.winechoice[i].price_in_cents)/100}</li>
<li>{'Sugar Content: ' + this.props.winechoice[i].sugar_in_grams_per_liter + ' g/L'}</li>
<li>{'Style: ' + this.props.winechoice[i].style}</li>
<li>{'Tasting Note: ' + this.props.winechoice[i].tasting_note}</li>
<li>{'Food Pairing Suggestion: ' + this.props.winechoice[i].serving_suggestion}</li>
Expand Down

0 comments on commit 3dfdf9e

Please sign in to comment.