Round available hours if necessary
This commit is contained in:
parent
e909bc22e7
commit
7d6a631f5d
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export default function Home(props) {
|
||||||
const stats = [
|
const stats = [
|
||||||
{ name: 'Event Types', stat: props.eventTypeCount },
|
{ name: 'Event Types', stat: props.eventTypeCount },
|
||||||
{ name: 'Integrations', stat: props.integrationCount },
|
{ name: 'Integrations', stat: props.integrationCount },
|
||||||
{ name: 'Available Hours', stat: (props.user.endTime - props.user.startTime) / 60 + ' hours' },
|
{ name: 'Available Hours', stat: Math.round(((props.user.endTime - props.user.startTime) / 60) * 100) / 100 + ' hours' },
|
||||||
];
|
];
|
||||||
|
|
||||||
let timeline = [];
|
let timeline = [];
|
||||||
|
|
Loading…
Reference in a new issue