tsk-2: Blank screen bug fix #16

Merged
phoenix merged 2 commits from tsk-2 into main 2026-07-04 16:56:35 -04:00
3 changed files with 13 additions and 4 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "textsender",
"version": "0.0.8",
"version": "0.0.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "textsender",
"version": "0.0.8",
"version": "0.0.9",
"dependencies": {
"dotenv": "^17.4.2",
"react": "^19.2.7",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "textsender",
"private": true,
"version": "0.0.8",
"version": "0.0.9",
"type": "module",
"scripts": {
"dev": "vite",
@@ -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,
]);