From 57cd17c7344dbdfb61972db3e73961368f73a7ec Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sun, 7 Jul 2019 07:08:42 -0500 Subject: [PATCH] Fixed broken pray button --- src/api/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj | 2 +- src/app/package.json | 2 +- src/app/src/store/index.js | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/api/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj b/src/api/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj index ea88b98..dd0fdb2 100644 --- a/src/api/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj +++ b/src/api/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj @@ -2,7 +2,7 @@ netcoreapp2.2 - 1.2.0.0 + 1.2.1.0 diff --git a/src/app/package.json b/src/app/package.json index 2392c3d..21f6a15 100644 --- a/src/app/package.json +++ b/src/app/package.json @@ -1,6 +1,6 @@ { "name": "my-prayer-journal", - "version": "1.2.0", + "version": "1.2.1", "description": "myPrayerJournal - Front End", "author": "Daniel J. Summers ", "private": true, diff --git a/src/app/src/store/index.js b/src/app/src/store/index.js index 597c56c..b7d0e6b 100644 --- a/src/app/src/store/index.js +++ b/src/app/src/store/index.js @@ -104,8 +104,10 @@ export default new Vuex.Store({ progress.start() try { let oldReq = (state.journal.filter(req => req.requestId === requestId) || [])[0] || {} - if (status !== 'Answered' && (oldReq.recurType !== recurType || oldReq.recurCount !== recurCount)) { - await api.updateRecurrence(requestId, recurType, recurCount) + if (!(status === 'Prayed' && updateText === '')) { + if (status !== 'Answered' && (oldReq.recurType !== recurType || oldReq.recurCount !== recurCount)) { + await api.updateRecurrence(requestId, recurType, recurCount) + } } if (status !== 'Updated' || oldReq.text !== updateText) { await api.updateRequest(requestId, status, oldReq.text !== updateText ? updateText : '')