mirror of
https://github.com/skidoodle/erettsegi-browser.git
synced 2026-04-28 05:27:35 +02:00
HMMMM
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user