Przeglądaj źródła

Fix: invalid conditions

Sotaro KARASAWA 9 lat temu
rodzic
commit
86aa014412
1 zmienionych plików z 1 dodań i 1 usunięć
  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 ;
     }