diff --git a/src/datastore/DataStore.ts b/src/datastore/DataStore.ts index e79eb16..8062580 100644 --- a/src/datastore/DataStore.ts +++ b/src/datastore/DataStore.ts @@ -110,7 +110,10 @@ class DataStore { const netDataInfo = self.data.get(NET_DATA_INFO) || {} netDataInfo.isEnabled = netDataInfo.isEnabled || false netDataInfo.data = netDataInfo.data || {} - netDataInfo.data.smtp = netDataInfo.data.smtp || {} + netDataInfo.data.smtp = + netDataInfo.data.smtp && netDataInfo.data.smtp.username + ? netDataInfo.data.smtp + : {} netDataInfo.data.slack = netDataInfo.data.slack || {} netDataInfo.data.telegram = netDataInfo.data.telegram || {} netDataInfo.data.pushBullet = netDataInfo.data.pushBullet || {}