Skip to content

Commit dd338da

Browse files
committed
Update reportWebVitals.ts
1 parent a97c5d1 commit dd338da

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)