Skip to content

Commit d90fdcd

Browse files
Update reportWebVitals.ts
1 parent 56a7459 commit d90fdcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cra-template-typescript/template/src/reportWebVitals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ReportHandler } from 'web-vitals';
22

33
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
4-
if (onPerfEntry && onPerfEntry instanceof Function) {
4+
if (onPerfEntry) {
55
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
66
getCLS(onPerfEntry);
77
getFID(onPerfEntry);

0 commit comments

Comments
 (0)