Skip to content

Commit

Permalink
fix(social-media): update sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Dec 20, 2022
1 parent 0e846d6 commit 5adce3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/forms/social-media/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function sanitize(form) {
if (fields.includes(key)) { body[key] = form[key]; }
});
if (!form.account.includes('https://')) { body.account = `https://${body.account}`; }
if (form.account.includes('.fr')) { body.account = body.account.replace('.fr', ''); }
return body;
}

Expand Down

0 comments on commit 5adce3e

Please sign in to comment.