diff --git a/src/login/lib/useUserProfileForm.tsx b/src/login/lib/useUserProfileForm.tsx index 9155cc49..73859cb8 100644 --- a/src/login/lib/useUserProfileForm.tsx +++ b/src/login/lib/useUserProfileForm.tsx @@ -1394,14 +1394,10 @@ export function getButtonToDisplayForMultivaluedAttributeField(params: { attribu })(); if (maxCount === undefined) { - return false; + return true; } - if (values.length === maxCount) { - return false; - } - - return true; + return values.length !== maxCount; })(); return { hasRemove, hasAdd };