From 28886827e15266a308ea77679c08fb6260aab8e1 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Sat, 25 May 2024 13:14:58 +0200 Subject: [PATCH] fix(device): fallback to unsupported model --- src/context/Device.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/Device.tsx b/src/context/Device.tsx index a2a0cc6a..744d9d08 100644 --- a/src/context/Device.tsx +++ b/src/context/Device.tsx @@ -115,7 +115,7 @@ export const Provider = ({ children }: { children: ComponentChildren }) => { typeof maybeValid.lastSeen === 'string' ? new Date(maybeValid.lastSeen) : undefined, - model: type, + model: type ?? models['unsupported'], }) setType(maybeValid.model) } else if (isShadow(maybeValid)) {