Explorar el Código

Fixed WhatIsNew.

KrisVos130 hace 7 años
padre
commit
3ca8e183d8
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      frontend/components/Modals/WhatIsNew.vue

+ 3 - 1
frontend/components/Modals/WhatIsNew.vue

@@ -62,7 +62,9 @@
 								localStorage.setItem('whatIsNew', res.data.createdAt);
 							}
 						} else {
-							this.toggleModal();
+							if (parseInt(localStorage.getItem('firstVisited')) < res.data.createdAt) {
+								this.toggleModal();
+							}
 							localStorage.setItem('whatIsNew', res.data.createdAt);
 						}
 					} else {