diff --git a/web/components/dashboard/ReceiveSMS.tsx b/web/components/dashboard/ReceiveSMS.tsx index b879969..689fbbc 100644 --- a/web/components/dashboard/ReceiveSMS.tsx +++ b/web/components/dashboard/ReceiveSMS.tsx @@ -85,7 +85,7 @@ const ReceivedSMSList = () => { }, [tabIndex, deviceList]) useEffect(() => { - if (authUser) { + if (authUser && activeDeviceId) { dispatch(fetchReceivedSMSList(activeDeviceId)) } }, [dispatch, authUser, activeDeviceId])