diff --git a/package-lock.json b/package-lock.json index 4460008..063a55e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10434,16 +10434,15 @@ } }, "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, diff --git a/utilities/recaptcha.ts b/utilities/recaptcha.ts index 4fcbca6..21a3e90 100644 --- a/utilities/recaptcha.ts +++ b/utilities/recaptcha.ts @@ -37,7 +37,14 @@ export default async function serverAction( // On exécute alors l'action côté serveur sans vérification. try { - return action( formData ); + let response; + + startTransition( () => + { + response = action( formData ); + } ); + + return response; } catch {