We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 073128c + fcf8ee6 commit d7dd14eCopy full SHA for d7dd14e
1 file changed
app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/edit/[id]/details/page.tsx
@@ -129,7 +129,7 @@ export default function AIModelDetailsPage() {
129
const isValidHttpUrl = (value: string) => {
130
try {
131
const parsed = new URL(value);
132
- return parsed.protocol === 'http:' || parsed.protocol === 'https:';
+ return parsed.protocol === 'https:';
133
} catch {
134
return false;
135
}
@@ -304,7 +304,7 @@ export default function AIModelDetailsPage() {
304
305
306
if (!isValidHttpUrl(trimmedWebsite)) {
307
- toast('Please enter a valid URL that includes http or https.');
+ toast('Please enter a valid URL that includes https.');
308
return;
309
310
0 commit comments