Skip to content

Commit 896a130

Browse files
committed
fix blank websites
1 parent df10da1 commit 896a130

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/views/student-orgs/clean-org.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export default function cleanOrg(org: StudentOrgType): StudentOrgType {
2222
const meetings = org.meetings.trim()
2323
const description = org.description.trim()
2424
let website = org.website.trim()
25-
website = /^https?:\/\//.test(website) ? website : `http://${website}`
25+
if (website && /^https?:\/\//.test(website)) {
26+
website = `http://${website}`
27+
}
2628

2729
return {
2830
...org,

0 commit comments

Comments
 (0)