year hace 3 semanas
padre
commit
2a69911e34
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/stores/useWheelStore.ts

+ 1 - 1
src/stores/useWheelStore.ts

@@ -50,7 +50,7 @@ export const useWheelStore = create<State & Action>()((set, get) => {
                     }));
                     return data;
                 }
-                if (data.total === 0) {
+                if (data?.activate?.amount === 0) {
                     set((state) => ({
                         ...state,
                         status: 2,