diff --git a/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts b/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts index fe390b5..2fe07e8 100644 --- a/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts +++ b/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts @@ -72,7 +72,7 @@ export class EditUpdateCategoryComponent implements OnInit { if (time <= 0) { this.data2.validityDays = 0 } else { - this.data2.validityDays = time / (1000*3600*24); + this.data2.validityDays = Math.floor(time / (1000*3600*24)); } } } @@ -89,7 +89,7 @@ export class EditUpdateCategoryComponent implements OnInit { if (time <= 0) { this.data2.validityDays = 0 } else { - this.data2.validityDays = time / (1000*3600*24); + this.data2.validityDays = Math.floor(time / (1000*3600*24)); } } else { this.data2.validityDays = 999