diff options
Diffstat (limited to 'src/store/modules/Settings/SmtpStore.js')
-rw-r--r-- | src/store/modules/Settings/SmtpStore.js | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |