Skip to content

Commit e301c42

Browse files
committed
fix(web): typing errors
1 parent 8762123 commit e301c42

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

web/src/pages/Cases/CaseDetails/Voting/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ function formatDate(unixTimestamp: number): string {
3939
interface IVoting {
4040
arbitrable?: `0x${string}`;
4141
currentPeriodIndex?: number;
42-
courtId: number;
4342
}
4443

4544
const Voting: React.FC<IVoting> = ({ arbitrable, currentPeriodIndex }) => {

web/src/pages/Cases/CaseDetails/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const CaseDetails: React.FC = () => {
2828
const { id } = useParams();
2929
const { data } = useDisputeDetailsQuery(id);
3030
const dispute = data?.dispute;
31-
const currentPeriodIndex = dispute ? Periods[dispute.period] : 0;
31+
const currentPeriodIndex = (dispute ? Periods[dispute.period] : 0) as number;
3232
const arbitrable = dispute?.arbitrated.id as `0x${string}`;
3333

3434
return (

0 commit comments

Comments
 (0)