# How to prevent error from logging to the console

**URL:** <https://community.hubspot.com/t/how-to-prevent-error-from-logging-to-the-console/73681>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [January 25, 2023, 7:35am UTC](https://community.hubspot.com/t/how-to-prevent-error-from-logging-to-the-console/73681 "2023-01-25T07:35:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JithinKS](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@JithinKS](https://community.hubspot.com/u/JithinKS)\
**Post date:** [January 25, 2023, 7:35am UTC](https://community.hubspot.com/t/how-to-prevent-error-from-logging-to-the-console/73681/1 "2023-01-25T07:35:08Z")

</div>

I was trying to integrate Hubspot to my app. But I’m getting the error that is shown in the image.

 ![Screenshot 2023-01-25 at 1.03.02 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/e/8e2bef2c40147c768fc19ba926bffe230b02c8a0.png)

Here is the code

[https://github.com/JithinKS97/ethernaut/blob/leaderboard-integration/client/src/components/leaderboard/Hubspot.js](https://github.com/JithinKS97/ethernaut/blob/leaderboard-integration/client/src/components/leaderboard/Hubspot.js)

How can I prevent this error from being shown in the console. Please help.
