fix(frontend): fetch device per id | close #225
This commit is contained in:
parent
7d8b08c09e
commit
5faa0cab9c
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user