Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6454 | Rev 6459 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6454 Rev 6455
Línea 141... Línea 141...
141
    setRemainingTime(getTimeDiff(time))
141
    setRemainingTime(getTimeDiff(time))
Línea 142... Línea 142...
142
 
142
 
Línea 143... Línea 143...
143
    if (!time) return
143
    if (!time) return
-
 
144
 
-
 
145
    const interval = setInterval(() => {
-
 
146
      if (!timeRef.current) {
-
 
147
        setRemainingTime(() => getTimeDiff(0))
-
 
148
        return
144
 
149
      }
-
 
150
 
-
 
151
      if (!timeRef.current <= 60) {
-
 
152
        timeRef.current -= 1
-
 
153
        setRemainingTime(() => getTimeDiff(timeRef.current))
-
 
154
        return
-
 
155
      }
145
    const interval = setInterval(() => {
156
 
146
      timeRef.current = timeRef.current - 60
157
      timeRef.current -= 60
Línea 147... Línea 158...
147
      setRemainingTime(() => getTimeDiff(timeRef.current))
158
      setRemainingTime(() => getTimeDiff(timeRef.current))
148
    }, 60000)
159
    }, 60000)