Commit 0841dc93 authored by chrisgarrity's avatar chrisgarrity

Fix tips modal

parent 4633086b
...@@ -45,10 +45,9 @@ class Tips extends React.Component { ...@@ -45,10 +45,9 @@ class Tips extends React.Component {
}); });
} }
renderTTTTiles () { renderTTTTiles () {
let translatedTile = {};
return Tiles.map((tile, key) => { return Tiles.map((tile, key) => {
translatedTile = { const translatedTile = {
activityLoc: this.props.intl.formatMessage({id: tile.activityLoc}), activityLoc: this.props.intl.formatMessage({id: tile.activityLoc}),
bannerUrl: tile.bannerUrl, bannerUrl: tile.bannerUrl,
description: this.props.intl.formatMessage({id: tile.description}), description: this.props.intl.formatMessage({id: tile.description}),
...@@ -66,7 +65,7 @@ class Tips extends React.Component { ...@@ -66,7 +65,7 @@ class Tips extends React.Component {
{...translatedTile} {...translatedTile}
/> />
); );
}); // don't forget to pass 'this' into map function });
} }
render () { render () {
return ( return (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment