tsk-2: Blank screen bug fix #16
@@ -28,7 +28,15 @@ const useSendMessageWizard = () => {
|
||||
case 'select':
|
||||
return state.selectedContacts.length > 0;
|
||||
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':
|
||||
console.log('Checking to see if schedule can go to the next step');
|
||||
if (state.scheduledTime == null) {
|
||||
@@ -49,6 +57,7 @@ const useSendMessageWizard = () => {
|
||||
state.step,
|
||||
state.selectedContacts.length,
|
||||
state.message,
|
||||
state.createdMessage,
|
||||
state.scheduledTime,
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user