*Really* display correct expiration date on license page.

calcDaysRemaining has recently been updated to return a string (`${duration} Days`) and calcExpiresOn was getting confused.

This change feels a little hacky but it gets the job done. I'm open to other suggestions if anyone has them.
This commit is contained in:
Shane McDonald 2016-05-11 17:19:02 -04:00
parent 2bb612afbb
commit 468c63f584

View File

@ -74,6 +74,7 @@ export default
var calcExpiresOn = function(days){
// calculate the expiration date of the license
days = parseInt(days);
return moment().add(days, 'days').calendar();
};
var init = function(){