Merge pull request #234 from OktopUSP/dev

fix(frontend): fetch device per id | close #225
This commit is contained in:
Leandro Antônio Farias Machado 2024-04-15 13:49:50 -03:00 committed by GitHub
commit 858ac1bb17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)