Skip to content

Commit

Permalink
Update src/utils/attendee.js
Browse files Browse the repository at this point in the history
Nice!

Co-authored-by: Christoph Wurst <[email protected]>
Signed-off-by: Mason Brothers <[email protected]>
  • Loading branch information
2 people authored and miaulalala committed Jul 6, 2023
1 parent 49822ed commit 59b1071
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/attendee.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
* @return {string} URI without a mailto prefix
*/
export function removeMailtoPrefix(uri) {
if (typeof uri !== 'string') return ''
if (typeof uri !== 'string') {
return ''
}

if (uri.startsWith('mailto:')) {
return uri.substr(7)
Expand Down

0 comments on commit 59b1071

Please sign in to comment.