fix(frontend): fetch device per id | close #225

This commit is contained in:
leandrofars 2024-04-15 13:41:17 -03:00
parent 7d8b08c09e
commit 5faa0cab9c

View File

@ -137,7 +137,7 @@ const Page = () => {
if (response.status === 401) if (response.status === 401)
router.push("/auth/login") router.push("/auth/login")
let json = await response.json() let json = await response.json()
if (json.MTP != undefined){ if (json.SN != undefined){
setDevices([json]) setDevices([json])
setDeviceFound(true) setDeviceFound(true)
setLoading(false) setLoading(false)