fix error2
This commit is contained in:
@@ -70,7 +70,7 @@ export default function DevicesPage() {
|
||||
// فراخوانی API برای بررسی دستگاه
|
||||
const device = await api.CheckDevice(currentDeviceName.trim(), currentPassword.trim())
|
||||
|
||||
if (device) {
|
||||
if (device !=undefined) {
|
||||
setSelected(device)
|
||||
} else {
|
||||
setError('دستگاه یافت نشد یا رمز عبور نادرست است')
|
||||
|
||||
Reference in New Issue
Block a user