Skip to content

Commit a97c5d1

Browse files
committed
Update reportWebVitals.js
1 parent b45ae3c commit a97c5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cra-template/template/src/reportWebVitals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const reportWebVitals = onPerfEntry => {
2-
if (onPerfEntry && onPerfEntry instanceof Function) {
2+
if (onPerfEntry) {
33
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
44
getCLS(onPerfEntry);
55
getFID(onPerfEntry);

0 commit comments

Comments
 (0)