@vixoniccom/footbal-score 1.2.1-hotfix.0 → 1.2.1-hotfix.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.2.1-hotfix.1](https://github.com/Vixonic/store-football-score/compare/v1.2.1-hotfix.0...v1.2.1-hotfix.1) (2026-06-17)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **refresh:** no bloquear el refetch cuando no hay ventana horaria ([5d0efb9](https://github.com/Vixonic/store-football-score/commit/5d0efb9ebf256a517a1a9c0996ebbb3ea6f195cf))
11
+
5
12
  ### [1.2.1-hotfix.0](https://github.com/Vixonic/store-football-score/compare/v1.2.0...v1.2.1-hotfix.0) (2026-06-17)
6
13
 
7
14
 
package/build.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixoniccom/footbal-score",
3
3
  "alias": "Resultados Deportivos",
4
- "version": "1.2.1-hotfix.0",
4
+ "version": "1.2.1-hotfix.1",
5
5
  "description": "Muestra resultados en vivo de fútbol.",
6
6
  "main": "main.js",
7
7
  "author": "",
package/src/App.tsx CHANGED
@@ -30,8 +30,13 @@ export const App = ({ data, start }: Props) => {
30
30
 
31
31
  const horaInicio = moment(data.parameters.timeStart, 'h:mma')
32
32
  const horaFin = moment(data.parameters.timeEnd, 'h:mma')
33
+ // Si la ventana horaria no está configurada (timeStart/timeEnd ausentes),
34
+ // se trata como siempre activa para que el refresh no quede bloqueado.
35
+ const withinWindow = horaInicio.isValid() && horaFin.isValid()
36
+ ? timeNow.isBetween(horaInicio, horaFin)
37
+ : true
33
38
 
34
- if (momentLocalStorage == undefined || (timeNow.isBetween(horaInicio, horaFin) && momentLocalStorage > updateTime!)) {
39
+ if (momentLocalStorage == undefined || (withinWindow && momentLocalStorage > updateTime!)) {
35
40
  const dataRequest = await getFixture(data.parameters.league!)
36
41
  setDataLocal(dataRequest)
37
42
  setDataFixture(dataRequest)