Procházet zdrojové kódy

Fix: invalid conditions

Sotaro KARASAWA před 9 roky
rodič
revize
86aa014412
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 ;
     }