Skip to content

Commit c7eb4ac

Browse files
author
Towfiqul Islam
committed
fix int year of exp
1 parent 70f785d commit c7eb4ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/towfiq.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $(document).ready(function () {
1313
monthOfExp = daysOfExp < 15 ? (monthOfExp + 1) : monthOfExp;
1414
yearOfExp += monthOfExp/12;
1515
monthOfExp = monthOfExp%12;
16-
var totalExperience = yearOfExp + "Y " + monthOfExp + "M ";
16+
var totalExperience = parseInt(yearOfExp) + "Y " + monthOfExp + "M ";
1717
$("#currentYear").html(currentYear);
1818
$("#totalExperience").html(totalExperience);
1919

0 commit comments

Comments
 (0)