fix: Resolved Typescript Error in PR #9598 created by @vijeet-shah. (#10871)

Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
Co-authored-by: vijeet-shah <93502358+vijeet-shah@users.noreply.github.com>
Co-authored-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
This commit is contained in:
Patel Divyesh
2023-08-22 13:02:40 +02:00
committed by GitHub
co-authored by Udit Takkar vijeet-shah Udit Takkar
parent 8987b9bdbc
commit f393fd4ad4
@@ -20,10 +20,11 @@ const SetupAvailability = (props: ISetupAvailabilityProps) => {
const { t } = useLocale();
const { nextStep } = props;
const scheduleId = defaultScheduleId === null ? undefined : defaultScheduleId;
const queryAvailability = trpc.viewer.availability.schedule.get.useQuery(
{ scheduleId: defaultScheduleId! },
{ scheduleId },
{
enabled: !!defaultScheduleId,
enabled: !!scheduleId,
}
);