fix queue failing for certain edge cases (#51)

This commit is contained in:
KM Koushik authored and GitHub committed 2024-08-10 20:54:58 +10:00
1 parent 1e77e47597
commit e126555be1
2 files changed
+18 -6

No files matched your search

@@ -21,8 +21,11 @@ import { toast } from "@unsend/ui/src/toaster";
const FormSchema = z.object({
region: z.string(),
unsendUrl: z.string().url(),
sendRate: z.number(),
transactionalQuota: z.number().min(0).max(100),
sendRate: z.preprocess((val) => Number(val), z.number()),
transactionalQuota: z.preprocess(
(val) => Number(val),
z.number().min(0).max(100)
),
});
type SesSettingsProps = {