From 3ac80d7b125c1fee8637e3bae37c38ff63a1b3a4 Mon Sep 17 00:00:00 2001 From: isra el Date: Sat, 20 Apr 2024 10:38:30 +0300 Subject: [PATCH] chore(web): prevent users from selecting a disabled device in send sms modal --- web/components/dashboard/SendSMS.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/components/dashboard/SendSMS.tsx b/web/components/dashboard/SendSMS.tsx index 6f5a6fb..36da667 100644 --- a/web/components/dashboard/SendSMS.tsx +++ b/web/components/dashboard/SendSMS.tsx @@ -39,7 +39,11 @@ export const SendSMSForm = ({ deviceList, formData, handleChange }) => { value={formData.device} > {deviceList.map((device) => ( - ))} @@ -99,7 +103,6 @@ export default function SendSMS() { // TODO: validate phone numbers } - dispatch( sendSMS({ deviceId,