fix: apply feedback

This commit is contained in:
yassinedorbozgithub 2025-05-29 09:42:37 +01:00
parent d54fab07d0
commit 76596cd472

View File

@ -113,14 +113,14 @@ const ListMessageForm = () => {
label={t("label.content_limit")} label={t("label.content_limit")}
type="number" type="number"
inputProps={{ inputProps={{
maxLength: 25, maxLength: 2,
step: "1", step: 1,
min: 2, min: displayMode === OutgoingMessageFormat.list ? 2 : 1,
max: 4, max: displayMode === OutgoingMessageFormat.list ? 4 : 10,
}} }}
{...register("options.content.limit", { {...register("options.content.limit", {
validate: { validate: {
min: (value) => { limitRange: (value) => {
if ( if (
displayMode === OutgoingMessageFormat.list && displayMode === OutgoingMessageFormat.list &&
(value < 2 || value > 4) (value < 2 || value > 4)