Skip to content

Commit 8e26882

Browse files
committed
fix: TS error related to non-existant ReasonEnum
1 parent a775bec commit 8e26882

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/web/components/dialog/ReassignDialog.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ export const ReassignDialog = ({
188188
<Form form={form} handleSubmit={handleSubmit} ref={animationParentRef}>
189189
<RadioArea.Group
190190
onValueChange={(val) => {
191-
form.setValue("reassignType", val as ReasonEnum);
191+
const reassignType: ReassignType = z.nativeEnum(ReassignType).parse(val);
192+
form.setValue("reassignType", reassignType);
192193
}}
193194
defaultValue={bookingFromRoutingForm ? ReassignType.TEAM_MEMBER : ReassignType.ROUND_ROBIN}
194195
className="mt-1 flex flex-col gap-4">

0 commit comments

Comments
 (0)