fix: unnecessary type casting

This commit is contained in:
abdou6666
2025-02-04 17:15:42 +01:00
parent 6879ff77b5
commit c66b3c3f9d
2 changed files with 3 additions and 4 deletions

View File

@@ -232,8 +232,7 @@ export class BlockService extends BaseService<
} else if (
typeof pattern === 'object' &&
'label' in pattern &&
text.trim().toLowerCase() ===
(pattern.label as unknown as string).toLowerCase()
text.trim().toLowerCase() === pattern.label.toLowerCase()
) {
// Payload (quick reply)
return [text];