This commit is contained in:
2023-12-13 15:09:16 +01:00
parent 5e46ceb833
commit b612d2327d
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -11,9 +11,7 @@ const CustomButton: React.FC<ButtonProps> = ({ label, link }) => {
if (link) {
try {
setIsLoading(true)
const response = await fetch(
`/api/validate?link=${encodeURIComponent(link)}`
)
const response = await fetch(`/api/validate?link=${encodeURI(link)}`)
const data = (await response.json()) as { status: number }
setStatus(data.status)
} catch (error) {