-
- {Array.from(Array(block.options.length)).map((_, idx) => (
-
- ))}
-
-
-
- {{block.options.labels.left}}
- {!isEmpty(block.options.labels.middle) && (
-
- {block.options.labels.middle}
-
- )}
- {
-
- {block.options.labels.right}
-
- }
-
+ {block.options.labels.left && (
+
+ {block.options.labels.left}
+
+ )}
+
+ {Array.from(
+ Array(
+ block.options.length +
+ (block.options.buttonType === 'Numbers' ? 1 : 0)
+ )
+ ).map((_, idx) => (
+
+ ))}
+ {block.options.labels.right && (
+
+ {block.options.labels.right}
+
+ )}
{isDefined(rating) && (
diff --git a/packages/models/src/typebot/blocks/input/rating.ts b/packages/models/src/typebot/blocks/input/rating.ts
index 2a35c8c54..f1e6130e1 100644
--- a/packages/models/src/typebot/blocks/input/rating.ts
+++ b/packages/models/src/typebot/blocks/input/rating.ts
@@ -20,7 +20,6 @@ export const ratingInputOptionsSchema = optionBaseSchema.and(
labels: z.object({
left: z.string().optional(),
right: z.string().optional(),
- middle: z.string().optional(),
button: z.string(),
}),
customIcon: z.object({