Skip to content

Commit

Permalink
Improved: isTimePassed function
Browse files Browse the repository at this point in the history
  • Loading branch information
sanskar345 committed Aug 18, 2023
1 parent 87037ff commit f3ccdfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/catalog-product-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ export default defineComponent({
},
isTimePassed(time: number) {
const timeDiff: any = DateTime.fromMillis(time).diff(DateTime.local());
return timeDiff.values.milliseconds > 0 ? false : true;
return timeDiff.values.milliseconds <= 0;
},
async copyAuditMsg() {
const { Clipboard } = Plugins;
Expand Down

0 comments on commit f3ccdfd

Please sign in to comment.