Skip to content

Commit 86bf081

Browse files
committed
app running
1 parent 86eb0e1 commit 86bf081

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/app/components/Action.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ const Action = (props: ActionProps) => {
4040
} else {
4141
seconds = '00';
4242
}
43-
const convert:any = new Number()
44-
miliseconds = convert.parseFloat(miliseconds).toFixed(2);
43+
miliseconds = Number.parseFloat(miliseconds).toFixed(2);
4544
const arrayMiliseconds = miliseconds.split('.');
4645
if (arrayMiliseconds[0].length < 2) {
4746
arrayMiliseconds[0] = '0'.concat(arrayMiliseconds[0]);

src/app/components/PerfView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ const PerfView = (props:PerfViewProps) => {
103103
.style('fill-opacity', (d:{parent:object}) => (d.parent === packedRoot ? 1 : 0))
104104
.style('display', (d:{parent?:object}) => (d.parent === packedRoot ? 'inline' : 'none'))
105105
.text((d:{data:{name:string, componentData?:{actualDuration:any}}}) => {
106-
const convert:any = new Number()
107-
return `${d.data.name}: ${convert.parseFloat(d.data.componentData.actualDuration || 0).toFixed(2)}ms`});
106+
return `${d.data.name}: ${Number.parseFloat(d.data.componentData.actualDuration || 0).toFixed(2)}ms`});
108107

109108
// Remove any unused nodes
110109
label.exit().remove();

0 commit comments

Comments
 (0)