mirror of
https://github.com/vernu/textbee.git
synced 2026-05-19 05:46:23 -04:00
fix(web): prevent api call if there is no activedevice
This commit is contained in:
@@ -85,7 +85,7 @@ const ReceivedSMSList = () => {
|
||||
}, [tabIndex, deviceList])
|
||||
|
||||
useEffect(() => {
|
||||
if (authUser) {
|
||||
if (authUser && activeDeviceId) {
|
||||
dispatch(fetchReceivedSMSList(activeDeviceId))
|
||||
}
|
||||
}, [dispatch, authUser, activeDeviceId])
|
||||
|
||||
Reference in New Issue
Block a user