Fixed the issue

This commit is contained in:
2026-07-04 16:55:02 -04:00
parent 7a357f6108
commit 33872ef8c8
@@ -28,7 +28,15 @@ const useSendMessageWizard = () => {
case 'select': case 'select':
return state.selectedContacts.length > 0; return state.selectedContacts.length > 0;
case 'message': case 'message':
return state.message.trim().length > 0; if (state.message.trim().length > 0) {
if (state.createdMessage != null) {
return true;
} else {
return false;
}
} else {
return false;
}
case 'schedule': case 'schedule':
console.log('Checking to see if schedule can go to the next step'); console.log('Checking to see if schedule can go to the next step');
if (state.scheduledTime == null) { if (state.scheduledTime == null) {
@@ -49,6 +57,7 @@ const useSendMessageWizard = () => {
state.step, state.step,
state.selectedContacts.length, state.selectedContacts.length,
state.message, state.message,
state.createdMessage,
state.scheduledTime, state.scheduledTime,
]); ]);