Trim inputs before submitting to API (all except passwords)

This commit is contained in:
James Nuanez committed 2020-04-24 23:03:23 -07:00
1 parent 6e87b31880
commit eda0956dcd
4 files changed
+22 -20

No files matched your search

+5 -5
View File
@@ -321,17 +321,17 @@ const ApplicationForm = props => {
const data = {
account_sid: accountSid,
name,
name: name.trim(),
call_hook: {
url: callWebhook,
url: callWebhook.trim(),
method: callWebhookMethod,
username: callWebhookUser || null,
username: callWebhookUser.trim() || null,
password: callWebhookPass || null,
},
call_status_hook: {
url: statusWebhook,
url: statusWebhook.trim(),
method: statusWebhookMethod,
username: statusWebhookUser || null,
username: statusWebhookUser.trim() || null,
password: statusWebhookPass || null,
},
speech_synthesis_vendor: speechSynthesisVendor,