Skip to content

Commit

Permalink
fix(device): fallback to unsupported model
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed May 25, 2024
1 parent 2854f27 commit 2888682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/Device.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2888682

Please sign in to comment.