Skip to content

Commit

Permalink
Premium days left hotfix (5.3.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Orogenesis committed May 14, 2019
1 parent f7dc195 commit 7bff6de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.chrome.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "FireX Proxy",
"version": "5.3.0",
"version": "5.3.1",
"description": "FireX Proxy",
"default_locale": "en",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion manifest.firefox.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "FireX Proxy",
"version": "5.3.0",
"version": "5.3.1",
"description": "FireX Proxy",
"default_locale": "en",
"icons": {
Expand Down
3 changes: 2 additions & 1 deletion vue/store/modules/user.js
Expand Up @@ -22,8 +22,9 @@ const getters = {
}

const delta = new Date(premiumExpiresAt).getTime() - new Date().getTime();
const days = Math.ceil(delta / (1e3 * 60 * 60 * 24));

return Math.ceil(delta / (1e3 * 60 * 60 * 24));
return Math.max(days, 0);
}
};

Expand Down

0 comments on commit 7bff6de

Please sign in to comment.