We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 847607b commit 377ffc3Copy full SHA for 377ffc3
1 file changed
src/common/schema/opportunities.ts
@@ -190,14 +190,13 @@ export const opportunityEditSchema = z
190
.refine(
191
(data) => {
192
if (data?.min && data?.max) {
193
- return data.max >= data.min && data.max <= data.min * 1.25;
+ return data.max >= data.min && data.min >= data.max * 0.75;
194
}
195
196
return true;
197
},
198
{
199
- error:
200
- 'Min salary must be less than or equal to max salary and no more than 25% lower',
+ error: 'Salary range must be within 25% of maximum salary',
201
202
),
203
seniorityLevel: z.number(),
0 commit comments