fix: return

This commit is contained in:
Nikola Ubavic 2022-03-14 13:34:03 +01:00
parent 3311c6c5fb
commit b54f76e610

View file

@ -110,14 +110,14 @@ const Notifications = ({
const twilioSave = it => {
setError(null)
saveAccount({
return saveAccount({
variables: { accounts: { twilio: it } }
}).then(() => R.compose(save(null), toNamespace('sms'))({ active: true }))
}
const mailgunSave = it => {
setError(null)
saveAccount({
return saveAccount({
variables: { accounts: { mailgun: it } }
}).then(() => R.compose(save(null), toNamespace('email'))({ active: true }))
}