@@ -163,26 +163,25 @@ const formSchema = toTypedSchema(
163
163
.refine (
164
164
(v ) =>
165
165
v .size <=
166
- // @ts-expect-error Types aren't updated with this new value yet
167
166
(identity .value ?.instance .configuration .emojis
168
- .emoji_size_limit ?? 0 ),
167
+ .emoji_size_limit ?? Number .POSITIVE_INFINITY ),
169
168
m .orange_weird_parakeet_hug ({
170
- // @ts-expect-error Types aren't updated with this new value yet
171
- count: identity .value ?.instance .configuration .emojis
172
- .emoji_size_limit ,
169
+ count:
170
+ identity .value ?.instance .configuration .emojis
171
+ .emoji_size_limit ?? Number .POSITIVE_INFINITY ,
173
172
}),
174
173
),
175
174
shortcode: z
176
175
.string ()
177
176
.min (1 )
178
177
.max (
179
- // @ts-expect-error Types aren't updated with this new value yet
180
178
identity .value ?.instance .configuration .emojis
181
- .max_emoji_shortcode_characters ,
179
+ .max_emoji_shortcode_characters ?? Number .POSITIVE_INFINITY ,
182
180
m .solid_inclusive_owl_hug ({
183
- // @ts-expect-error Types aren't updated with this new value yet
184
- count: identity .value ?.instance .configuration .emojis
185
- .max_emoji_shortcode_characters ,
181
+ count:
182
+ identity .value ?.instance .configuration .emojis
183
+ .max_emoji_shortcode_characters ??
184
+ Number .POSITIVE_INFINITY,
186
185
}),
187
186
)
188
187
.regex (emojiValidator ),
@@ -199,13 +198,14 @@ const formSchema = toTypedSchema(
199
198
alt: z
200
199
.string ()
201
200
.max (
202
- // @ts-expect-error Types aren't updated with this new value yet
203
201
identity .value ?.instance .configuration .emojis
204
- .max_emoji_description_characters ,
202
+ .max_emoji_description_characters ??
203
+ Number .POSITIVE_INFINITY,
205
204
m .key_ago_hound_emerge ({
206
- // @ts-expect-error Types aren't updated with this new value yet
207
- count: identity .value ?.instance .configuration .emojis
208
- .max_emoji_description_characters ,
205
+ count:
206
+ identity .value ?.instance .configuration .emojis
207
+ .max_emoji_description_characters ??
208
+ Number .POSITIVE_INFINITY,
209
209
}),
210
210
)
211
211
.optional (),
@@ -242,4 +242,4 @@ const submit = handleSubmit(async (values) => {
242
242
toast .dismiss (id );
243
243
}
244
244
});
245
- </script >
245
+ </script >
0 commit comments