I need a quick Javascript code fix

Job ID: 34969063

Budget: $24 – $25 USD

I have a website which is built on React with few other supporting javascript files. My website works well with Chrome and MS Edge browser, but it gives error on Firefox browser.

This is the error message:

"Uncaught (in promise) TypeError: this.connectBtn is null".

and the issue is related to this code: document.getElementById

This code is from javascript file(.js file) of my website.

May be it is not able to get the element ID from the DOM and through above error.

I am looking for some one who is expert in Javascript and fix this issue quickly. My Budget is $25. I need to fix it today.

I will provide more details to the interested bidder.
Related categories: PHP JavaScript CSS HTML jQuery / Prototype