fix(web): prevent api call if there is no activedevice

This commit is contained in:
isra el
2024-04-20 14:14:15 +03:00
parent da070e0213
commit 2481180a57

View File

@@ -85,7 +85,7 @@ const ReceivedSMSList = () => {
}, [tabIndex, deviceList])
useEffect(() => {
if (authUser) {
if (authUser && activeDeviceId) {
dispatch(fetchReceivedSMSList(activeDeviceId))
}
}, [dispatch, authUser, activeDeviceId])