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)
|
||||
router.push("/auth/login")
|
||||
let json = await response.json()
|
||||
if (json.MTP != undefined){
|
||||
if (json.SN != undefined){
|
||||
setDevices([json])
|
||||
setDeviceFound(true)
|
||||
setLoading(false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user