Explorar o código

fix: cooldown (#1945)

guibescos hai 1 ano
pai
achega
3ec255a3a9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/staking/src/components/ProgramSection/index.tsx

+ 2 - 2
apps/staking/src/components/ProgramSection/index.tsx

@@ -210,13 +210,13 @@ const TokenOverview = ({
           {cooldown > 0n && (
             <div className="mt-2 text-xs text-neutral-500">
               <Tokens>{cooldown}</Tokens> end{" "}
-              {epochToDate(currentEpoch + 1n).toLocaleString()}
+              {epochToDate(currentEpoch + 2n).toLocaleString()}
             </div>
           )}
           {cooldown2 > 0n && (
             <div className="mt-2 text-xs text-neutral-500">
               <Tokens>{cooldown2}</Tokens> end{" "}
-              {epochToDate(currentEpoch + 2n).toLocaleString()}
+              {epochToDate(currentEpoch + 1n).toLocaleString()}
             </div>
           )}
         </>