From b54f76e610cb484bb4e0e49b87309af9d40ffe45 Mon Sep 17 00:00:00 2001 From: Nikola Ubavic <53820106+ubavic@users.noreply.github.com> Date: Mon, 14 Mar 2022 13:34:03 +0100 Subject: [PATCH] fix: return --- new-lamassu-admin/src/pages/Notifications/Notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/new-lamassu-admin/src/pages/Notifications/Notifications.js b/new-lamassu-admin/src/pages/Notifications/Notifications.js index 9247c986..b79eb9a7 100644 --- a/new-lamassu-admin/src/pages/Notifications/Notifications.js +++ b/new-lamassu-admin/src/pages/Notifications/Notifications.js @@ -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 })) }