Hiding birthdays.
This commit is contained in:
@@ -283,16 +283,18 @@ class PlayerResources extends React.Component {
|
||||
<ResourceUnit img={TractorImg} h='240' s='100' label='Tractors'
|
||||
amount={player.assets.tractor}>
|
||||
{player.assets.tractor}
|
||||
</ResourceUnit> {' '}
|
||||
<ResourceUnit img={CakeImg} h='240' s='100' label='Birthday'
|
||||
amount={player.assets.birthday ? player.assets.birthday : 0}>
|
||||
{player.assets.birthday ? player.assets.birthday : 0}
|
||||
</ResourceUnit>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/* {' '}
|
||||
* <ResourceUnit img={CakeImg} h='240' s='100' label='Birthday'
|
||||
* amount={player.assets.birthday ? player.assets.birthday : 0}>
|
||||
* {player.assets.birthday ? player.assets.birthday : 0}
|
||||
* </ResourceUnit> */
|
||||
|
||||
// http://stackoverflow.com/questions/149055
|
||||
function formatMoney(n) {
|
||||
return n.toFixed(1).replace(/(\d)(?=(\d{3})+\.)/g, '$1,').slice(0, -2); }
|
||||
|
||||
Reference in New Issue
Block a user