Fixed size error message showing when not necessary

This commit is contained in:
datalore 2023-11-03 20:42:00 +01:00
parent 84269a22ac
commit 3a479cb573

View File

@ -17,7 +17,7 @@ export default function BingoController(){
const [size, setSize] = React.useState(5);
const buzzwords = ["Cloud", "Cyber-[Something]", "Distrupt[ive]", "AI", "Meta [Something]", "Gamification", "Web 2.0/3.0", "Industry 4.0", "Internet of Things", "Multiexperience", "Big Data", "Crypto", "[Something] as a service", "Emerging [Something]", "Streamline", "Ecosystem", "Leverage", "Outside the Box", "Pivot", "Strategic", "Agile", "Smart Tech", "Data Warehouse", "Actionable Insights", "Holistic Approach", "Digital Transformation", "Growth Hacking"];
const [items, setItems] = React.useState(buzzwords);
const sizeError = ((items.length % size) != 0);
const sizeError = (items.length < size);
return(
<>
<div className="w-3/4 flex flex-row m-auto">