Skip to content

Commit cf79913

Browse files
authored
Merge pull request #388 from CivicDataLab/Helptext-need-to-be-changed-not-toast-so-fixing-it
Earlier i did change in toast but i needed to change helptext
2 parents 27e6aff + 0644789 commit cf79913

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/edit/[id]/details

app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/edit/[id]/details/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default function AIModelDetailsPage() {
148148
const isValidHttpUrl = (value: string) => {
149149
try {
150150
const parsed = new URL(value);
151-
return parsed.protocol === 'https:';
151+
return parsed.protocol === 'http:' || parsed.protocol === 'https:';
152152
} catch {
153153
return false;
154154
}
@@ -325,7 +325,7 @@ export default function AIModelDetailsPage() {
325325
}
326326

327327
if (!isValidHttpUrl(trimmedWebsite)) {
328-
toast('Please enter a valid URL that includes https.', {
328+
toast('Please enter a valid URL that includes http or https.', {
329329
id: AI_MODEL_VALIDATION_TOAST_ID,
330330
});
331331
return;
@@ -591,7 +591,7 @@ export default function AIModelDetailsPage() {
591591
value={formData.modelWebsite}
592592
onChange={(value) => handleInputChange('modelWebsite', value)}
593593
onBlur={handleWebsiteBlur}
594-
placeholder="www.model.com"
594+
placeholder="https://www.model.com"
595595
required
596596
requiredIndicator={true}
597597
/>

0 commit comments

Comments
 (0)