@captchafox/react
Advanced tools
Comparing version
@@ -94,3 +94,3 @@ "use client"; | ||
} | ||
setWidgetId(""); | ||
setWidgetId(void 0); | ||
window.captchafox.remove(widgetId); | ||
@@ -108,2 +108,7 @@ }, | ||
); | ||
useEffect(() => { | ||
if (widgetId) { | ||
onLoad == null ? void 0 : onLoad(); | ||
} | ||
}, [widgetId]); | ||
const renderCaptcha = () => __async(void 0, null, function* () { | ||
@@ -126,3 +131,2 @@ var _a, _b, _c; | ||
setWidgetId(newWidgetId); | ||
onLoad == null ? void 0 : onLoad(); | ||
}); | ||
@@ -129,0 +133,0 @@ useEffect(() => { |
{ | ||
"name": "@captchafox/react", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"main": "./dist/index.cjs", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
18318
0.96%359
2.28%