From dbcdb2075fecc350c6c9f97735b2cdd9105ada6a Mon Sep 17 00:00:00 2001 From: Maksim Zakharov Date: Tue, 18 Oct 2022 10:01:32 +0300 Subject: fix smtp message --- src/store/modules/Settings/SmtpStore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/store/modules') diff --git a/src/store/modules/Settings/SmtpStore.js b/src/store/modules/Settings/SmtpStore.js index a0240462..cf508029 100644 --- a/src/store/modules/Settings/SmtpStore.js +++ b/src/store/modules/Settings/SmtpStore.js @@ -90,8 +90,8 @@ const SmtpStore = { return await api .post('/redfish/v1/Smtp/SendMail', payload) .then((res) => { - if (res?.data?.result === false) { - return res.data; + if (res.data) { + return res; } }) .catch((error) => console.log(error)); -- cgit v1.2.3