|
|
@@ -102,7 +102,11 @@ const Shortener = () => {
|
|
|
setCopied(false);
|
|
|
setLoading(true);
|
|
|
|
|
|
- if (process.env.NODE_ENV === "production" && !isAuthenticated) {
|
|
|
+ if (
|
|
|
+ process.env.NODE_ENV === "production" &&
|
|
|
+ !!publicRuntimeConfig.RECAPTCHA_SITE_KEY &&
|
|
|
+ !isAuthenticated
|
|
|
+ ) {
|
|
|
window.grecaptcha.execute(window.captchaId);
|
|
|
const getCaptchaToken = () => {
|
|
|
setTimeout(() => {
|