Skip to content

Commit

Permalink
Fix tips modal
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgarrity committed Jan 29, 2018
1 parent 4633086 commit 0841dc9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/views/tips/tips.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ class Tips extends React.Component {
});
}
renderTTTTiles () {
let translatedTile = {};

return Tiles.map((tile, key) => {
translatedTile = {
const translatedTile = {
activityLoc: this.props.intl.formatMessage({id: tile.activityLoc}),
bannerUrl: tile.bannerUrl,
description: this.props.intl.formatMessage({id: tile.description}),
Expand All @@ -66,7 +65,7 @@ class Tips extends React.Component {
{...translatedTile}
/>
);
}); // don't forget to pass 'this' into map function
});
}
render () {
return (
Expand Down

0 comments on commit 0841dc9

Please sign in to comment.