Skip to content

Commit

Permalink
fix(web): typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alcercu committed Oct 9, 2023
1 parent 8762123 commit e301c42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion web/src/pages/Cases/CaseDetails/Voting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ function formatDate(unixTimestamp: number): string {
interface IVoting {
arbitrable?: `0x${string}`;
currentPeriodIndex?: number;
courtId: number;
}

const Voting: React.FC<IVoting> = ({ arbitrable, currentPeriodIndex }) => {
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Cases/CaseDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const CaseDetails: React.FC = () => {
const { id } = useParams();
const { data } = useDisputeDetailsQuery(id);
const dispute = data?.dispute;
const currentPeriodIndex = dispute ? Periods[dispute.period] : 0;
const currentPeriodIndex = (dispute ? Periods[dispute.period] : 0) as number;
const arbitrable = dispute?.arbitrated.id as `0x${string}`;

return (
Expand Down

0 comments on commit e301c42

Please sign in to comment.