diff --git a/package-lock.json b/package-lock.json
index f46dfdd..883aaa5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "ucentral-client",
- "version": "3.0.1(6)",
+ "version": "3.0.2(1)",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ucentral-client",
- "version": "3.0.1(6)",
+ "version": "3.0.2(1)",
"license": "ISC",
"dependencies": {
"@chakra-ui/anatomy": "^2.1.1",
@@ -10442,9 +10442,9 @@
}
},
"node_modules/vite": {
- "version": "4.5.1",
- "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.1.tgz",
- "integrity": "sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==",
+ "version": "4.5.2",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.2.tgz",
+ "integrity": "sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==",
"dependencies": {
"esbuild": "^0.18.10",
"postcss": "^8.4.27",
diff --git a/package.json b/package.json
index dd49142..f64ceb8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ucentral-client",
- "version": "3.0.1(6)",
+ "version": "3.0.2(1)",
"description": "",
"private": true,
"main": "index.tsx",
diff --git a/public/devices/cybertan_eww631-a1.png b/public/devices/cybertan_eww631-a1.png
new file mode 100644
index 0000000..c25d6b1
Binary files /dev/null and b/public/devices/cybertan_eww631-a1.png differ
diff --git a/public/devices/cybertan_eww631-b1.png b/public/devices/cybertan_eww631-b1.png
new file mode 100644
index 0000000..bd97bc4
Binary files /dev/null and b/public/devices/cybertan_eww631-b1.png differ
diff --git a/public/devices/cybertan_skf224-c1.png b/public/devices/cybertan_skf224-c1.png
new file mode 100644
index 0000000..ac8a659
Binary files /dev/null and b/public/devices/cybertan_skf224-c1.png differ
diff --git a/src/pages/Device/Summary.tsx b/src/pages/Device/Summary.tsx
index acc7ec5..ebff10b 100644
--- a/src/pages/Device/Summary.tsx
+++ b/src/pages/Device/Summary.tsx
@@ -65,12 +65,6 @@ const DeviceSummary = ({ serialNumber }: Props) => {
const getDeviceCompatible = () => {
if (!getDevice.data?.compatible) return undefined;
- if (!getDevice.data?.compatible.includes('-')) return getDevice.data?.compatible;
-
- const split = getDevice.data?.compatible.split('-');
-
- if (split[split.length - 1]?.length === 2) return split[0]?.trim();
-
return getDevice.data?.compatible;
};
@@ -129,7 +123,7 @@ const DeviceSummary = ({ serialNumber }: Props) => {
{t('controller.stats.load')}:
- {getStats.data?.unit?.load?.map((l) => `${l.toFixed(2)}`).join(' | ') ?? ''}
+ {getStats.data?.unit?.load ? getStats.data?.unit.load.map((l) => `${l.toFixed(2)}`).join(' | ') : ''}
{t('controller.devices.localtime')}:
@@ -180,7 +174,7 @@ const DeviceSummary = ({ serialNumber }: Props) => {
{getStatus.data?.connectReason && getStatus.data?.connectReason.length > 0
- ? uppercaseFirstLetter(getStatus.data.connectReason)
+ ? uppercaseFirstLetter(getStatus.data?.connectReason)
: '-'}