From 9e20e5e386f07a817ae06c80afb8d5c02468e218 Mon Sep 17 00:00:00 2001 From: fevziatanoglu Date: Sun, 19 May 2024 15:04:33 +0300 Subject: [PATCH] Minor Changes --- app/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/page.js b/app/page.js index 7a10008..3f78328 100644 --- a/app/page.js +++ b/app/page.js @@ -14,7 +14,7 @@ export default function Home() { try { setLoading(true); // check is url slideshare link - if (!slideShareUrl.startsWith("https://www.slideshare.net/") || !slideShareUrl.startsWith("http://www.slideshare.net/")) { + if (!slideShareUrl.startsWith("https://www.slideshare.net/") && !slideShareUrl.startsWith("http://www.slideshare.net/")) { // if not set error setError('Link have to starts with "https://www.slideshare.net". Please check again.'); setSlideShareUrl('');