tsk-2: Blank screen bug fix #16
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "textsender",
|
"name": "textsender",
|
||||||
"version": "0.0.8",
|
"version": "0.0.9",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "textsender",
|
"name": "textsender",
|
||||||
"version": "0.0.8",
|
"version": "0.0.9",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotenv": "^17.4.2",
|
"dotenv": "^17.4.2",
|
||||||
"react": "^19.2.7",
|
"react": "^19.2.7",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "textsender",
|
"name": "textsender",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.8",
|
"version": "0.0.9",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -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,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user