Commit c03fa44c authored by Magnus Westergaard's avatar Magnus Westergaard
Browse files

DEICH-5621: Simplify conditional.

parent b181575d
......@@ -26,7 +26,7 @@ const DynamicList = ({
size,
children
}) => {
const numberOfItems = size > 0 ? size : DEFAULT_SIZES[type];
const numberOfItems = size || DEFAULT_SIZES[type];
const itemsToDisplay = items.slice(0, numberOfItems);
return (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment