[U] Use needToUpdateCookies() to check

This commit is contained in:
Hykilpikonna
2019-10-20 18:54:52 -04:00
parent 83c6a690ec
commit b08fd7f433
+1 -1
View File
@@ -24,7 +24,7 @@ export default class Login extends Vue
public created() public created()
{ {
// Check cookies version // Check cookies version
if (!this.$cookies.isKey('va.version') || this.$cookies.get('va.version') != Constants.VERSION) if (this.needToUpdateCookies())
{ {
// Clear all cookies // Clear all cookies
this.$cookies.keys().forEach(key => this.$cookies.remove(key)); this.$cookies.keys().forEach(key => this.$cookies.remove(key));