Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #8 from systemseed/cards
Browse files Browse the repository at this point in the history
[#155189315] Fixed issue with whatYouGetImage image not displaying on Gifts page
  • Loading branch information
ikorgik authored Mar 27, 2018
2 parents d515d70 + 68ed8e1 commit 8942421
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend-gifts/src/components/GiftPage/GiftTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class GiftTabs extends React.Component {
<TabPanel>
<div className="row space-top">
<div className="col-md-6 space-bottom">
{gift.whatYouGetImageUrl &&
<img src={gift.whatYouGetImageUrl} alt={gift.whatYouGetImageAlt} title={gift.whatYouGetImageAlt} />
{gift.whatYouGetImage &&
<img src={gift.whatYouGetImage.src} alt={gift.whatYouGetImage.alt} title={gift.whatYouGetImage.alt} />
}
</div>
<div className="col-md-6">
Expand Down Expand Up @@ -90,8 +90,7 @@ GiftTabs.propTypes = {
actionImageUrl: React.PropTypes.string,
actionImageAlt: React.PropTypes.string,
actionDescription: React.PropTypes.string,
whatYouGetImageUrl: React.PropTypes.string,
whatYouGetImageAlt: React.PropTypes.string
whatYouGetImage: React.PropTypes.object,
}).isRequired,
};

Expand Down

0 comments on commit 8942421

Please sign in to comment.