We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a775bec commit 8e26882Copy full SHA for 8e26882
apps/web/components/dialog/ReassignDialog.tsx
@@ -188,7 +188,8 @@ export const ReassignDialog = ({
188
<Form form={form} handleSubmit={handleSubmit} ref={animationParentRef}>
189
<RadioArea.Group
190
onValueChange={(val) => {
191
- form.setValue("reassignType", val as ReasonEnum);
+ const reassignType: ReassignType = z.nativeEnum(ReassignType).parse(val);
192
+ form.setValue("reassignType", reassignType);
193
}}
194
defaultValue={bookingFromRoutingForm ? ReassignType.TEAM_MEMBER : ReassignType.ROUND_ROBIN}
195
className="mt-1 flex flex-col gap-4">
0 commit comments