tsk-2: Blank screen bug fix (#16)

Closes #2

Reviewed-on: phoenix/textsender#16
This commit was merged in pull request #16.
This commit is contained in:
2026-07-04 16:56:35 -04:00
parent 7a357f6108
commit 07f9db2298
3 changed files with 13 additions and 4 deletions
@@ -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,
]);