diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 80ba5357e..6081a71e6 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -372,5 +372,9 @@ "paperlessngx": { "inbox": "Inbox", "total": "Total" + }, + "nextdns": { + "wait": "Please Wait", + "no_devices": "No Device Data Received" } } \ No newline at end of file diff --git a/src/widgets/nextdns/component.jsx b/src/widgets/nextdns/component.jsx index 75ef04f01..ae2397701 100644 --- a/src/widgets/nextdns/component.jsx +++ b/src/widgets/nextdns/component.jsx @@ -18,14 +18,22 @@ export default function Component({ service }) { if (!nextdnsData) { return ( - No data + + + ); + } + + if (!nextdnsData?.data?.length) { + return ( + + ); } return ( - {nextdnsData?.data?.map(d => )} + {nextdnsData.data.map(d => )} ); }