Skip to content

Commit 5d9bf8e

Browse files
committed
refactor(web): better-type-handling-for-is-drawn-variable
1 parent ec0e43f commit 5d9bf8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/pages/Cases/CaseDetails/MaintenanceButtons/PassPeriodButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const PassPeriodButton: React.FC<IPassPeriodButton> = ({ id, setIsOpen, period }
2828
const publicClient = usePublicClient();
2929
const { data: maintenanceData } = useDisputeMaintenanceQuery(id);
3030

31-
const isDrawn = useMemo(() => maintenanceData?.dispute?.currentRound.jurorsDrawn, [maintenanceData]);
31+
const isDrawn = useMemo(() => maintenanceData?.dispute?.currentRound.jurorsDrawn ?? false, [maintenanceData]);
3232

3333
const {
3434
data: passPeriodConfig,

0 commit comments

Comments
 (0)