fix: return
This commit is contained in:
parent
3311c6c5fb
commit
b54f76e610
1 changed files with 2 additions and 2 deletions
|
|
@ -110,14 +110,14 @@ const Notifications = ({
|
||||||
|
|
||||||
const twilioSave = it => {
|
const twilioSave = it => {
|
||||||
setError(null)
|
setError(null)
|
||||||
saveAccount({
|
return saveAccount({
|
||||||
variables: { accounts: { twilio: it } }
|
variables: { accounts: { twilio: it } }
|
||||||
}).then(() => R.compose(save(null), toNamespace('sms'))({ active: true }))
|
}).then(() => R.compose(save(null), toNamespace('sms'))({ active: true }))
|
||||||
}
|
}
|
||||||
|
|
||||||
const mailgunSave = it => {
|
const mailgunSave = it => {
|
||||||
setError(null)
|
setError(null)
|
||||||
saveAccount({
|
return saveAccount({
|
||||||
variables: { accounts: { mailgun: it } }
|
variables: { accounts: { mailgun: it } }
|
||||||
}).then(() => R.compose(save(null), toNamespace('email'))({ active: true }))
|
}).then(() => R.compose(save(null), toNamespace('email'))({ active: true }))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue