فهرست منبع

Fix: invalid conditions

Sotaro KARASAWA 9 سال پیش
والد
کامیت
86aa014412
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      resource/js/util/Crowi.js

+ 1 - 1
resource/js/util/Crowi.js

@@ -64,7 +64,7 @@ export default class Crowi {
   fetchUsers () {
     const interval = 1000*60*15; // 15min
     const currentTime = new Date();
-    if (!this.localStorage.lastFetched && interval > currentTime - new Date(this.localStorage.lastFetched)) {
+    if (this.localStorage.lastFetched && interval > currentTime - new Date(this.localStorage.lastFetched)) {
       return ;
     }