We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df10da1 commit 896a130Copy full SHA for 896a130
source/views/student-orgs/clean-org.js
@@ -22,7 +22,9 @@ export default function cleanOrg(org: StudentOrgType): StudentOrgType {
22
const meetings = org.meetings.trim()
23
const description = org.description.trim()
24
let website = org.website.trim()
25
- website = /^https?:\/\//.test(website) ? website : `http://${website}`
+ if (website && /^https?:\/\//.test(website)) {
26
+ website = `http://${website}`
27
+ }
28
29
return {
30
...org,
0 commit comments