diff --git a/src/utils/handle-style.ts b/src/utils/handle-style.ts index 8b22d177..77570a6a 100644 --- a/src/utils/handle-style.ts +++ b/src/utils/handle-style.ts @@ -52,13 +52,7 @@ function injectStyle({ const { insertAt } = ref if (document.getElementById(id)) { - // this should never happen because of `injected[type]` - if (process.env.NODE_ENV !== 'production') { - // eslint-disable-next-line no-console - console.warn( - `[react-tooltip] Element with id '${id}' already exists. Call \`removeStyle()\` first`, - ) - } + // this could happen in cases the tooltip is imported by multiple js modules return }