Skip to content

Commit

Permalink
fix: Remove unncessary truthy check for AsyncComponent (#39537)
Browse files Browse the repository at this point in the history
  • Loading branch information
dashed authored and ryan953 committed Oct 3, 2022
1 parent 118402a commit a62dc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/app/components/asyncComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class AsyncComponent<
this._measurement = {
hasMeasured: false,
};
if (props.routes && props.routes) {
if (props.routes) {
metric.mark({name: `async-component-${getRouteStringFromRoutes(props.routes)}`});
}
}
Expand Down

0 comments on commit a62dc2d

Please sign in to comment.