mirror of
https://github.com/documenso/documenso.git
synced 2026-07-24 00:43:40 +10:00
refactor: avoid recipient color duplication (#2355)
This commit is contained in:
@@ -110,10 +110,7 @@ export const DocumentReadOnlyFields = ({
|
||||
color={
|
||||
showRecipientColors
|
||||
? getRecipientColorStyles(
|
||||
Math.max(
|
||||
recipientIds.findIndex((id) => id === field.recipientId),
|
||||
0,
|
||||
),
|
||||
recipientIds.findIndex((id) => id === field.recipientId),
|
||||
)
|
||||
: undefined
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user