We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9889e4 commit bd820f0Copy full SHA for bd820f0
src/app/components/Action.jsx
@@ -11,6 +11,9 @@ const Action = props => {
11
12
// display render time for state change in seconds and miliseconds
13
const cleanTime = () => {
14
+ if (!componentData.actualDuration) {
15
+ return 'NO TIME';
16
+ }
17
let seconds;
18
let miliseconds = componentData.actualDuration;
19
if (Math.floor(componentData.actualDuration) > 60) {
@@ -23,7 +26,7 @@ const Action = props => {
23
26
} else {
24
27
seconds = '00';
25
28
}
- miliseconds = Number.parseFloat(miliseconds).toFixed(2)
29
+ miliseconds = Number.parseFloat(miliseconds).toFixed(2);
30
const arrayMiliseconds = miliseconds.split('.');
31
if (arrayMiliseconds[0].length < 2) {
32
arrayMiliseconds[0] = '0'.concat(arrayMiliseconds[0]);
0 commit comments