Skip to content

Commit

Permalink
Fix off-by-one length check
Browse files Browse the repository at this point in the history
  • Loading branch information
berekuk committed Nov 17, 2023
1 parent a412058 commit b62d351
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const ValueWithContextViewer: FC<Props> = ({ value }) => {
return (
getChildrenValues(v).length > 5 ||
tagsDefaultCollapsed.has(v.tag) ||
(v.tag === "String" && v.value.length < SHORT_STRING_LENGTH)
(v.tag === "String" && v.value.length <= SHORT_STRING_LENGTH)
);
}
};
Expand Down

0 comments on commit b62d351

Please sign in to comment.