Skip to content

Commit

Permalink
Improved: Removed unnecessary code (method and getter) (#2tzb5w4)
Browse files Browse the repository at this point in the history
  • Loading branch information
k2maan committed Sep 13, 2022
1 parent 25b04b9 commit 06f37a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/JobConfiguration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ export default defineComponent({
currentShopifyConfig: 'user/getCurrentShopifyConfig',
currentEComStore: 'user/getCurrentEComStore',
currentJob: 'job/getCurrentJob',
userProfile: "user/getUserProfile"
}),
generateFrequencyOptions(): any {
const optionDefault = [{
Expand Down Expand Up @@ -323,9 +322,9 @@ export default defineComponent({
},
updateRunTime(ev: CustomEvent, job: any) {
if (job) {
const currTime = DateTime.now().setZone(this.userProfile.userTimeZone).toMillis();
const currTime = DateTime.now().toMillis();
const setTime = DateTime.fromISO(ev['detail'].value).toMillis();
if(setTime > currTime) {
job.runTime = handleDateTimeInput(ev['detail'].value);
} else {
Expand Down

0 comments on commit 06f37a2

Please sign in to comment.