File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
web/src/pages/Cases/CaseDetails/Appeal/Classic Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, { useMemo } from "react";
22import styled from "styled-components" ;
33import { Box } from "@kleros/ui-components-library" ;
44import { useCountdown } from "hooks/useCountdown" ;
5+ import { ONE_BASIS_POINT } from "consts/index" ;
56import { secondsToDayHourMinute } from "utils/date" ;
67import HourglassIcon from "svgs/icons/hourglass.svg" ;
78
@@ -26,7 +27,7 @@ const StageExplainer: React.FC<IStageExplainer> = ({
2627 < StyledBox >
2728 < CountdownLabel >
2829 < HourglassIcon />
29- { secondsToDayHourMinute ( timeLeft ) }
30+ { typeof timeLeft !== "undefined" && secondsToDayHourMinute ( timeLeft ) }
3031 </ CountdownLabel >
3132 < div >
3233 < label >
@@ -50,7 +51,8 @@ const getDeadline = (
5051 const parsedAppealPeriodDuration = parseInt ( appealPeriodDuration , 10 ) ;
5152 const parsedLoserTimeMultiplier = parseInt ( loserTimeMultiplier , 10 ) ;
5253 const loserAppealPeriodDuration =
53- parsedAppealPeriodDuration * parsedLoserTimeMultiplier ;
54+ ( parsedAppealPeriodDuration * parsedLoserTimeMultiplier ) /
55+ ONE_BASIS_POINT . toNumber ( ) ;
5456 return loserAppealPeriodDuration + parsedLastPeriodChange ;
5557} ;
5658
You can’t perform that action at this time.
0 commit comments