Fixed size error message showing when not necessary
This commit is contained in:
parent
84269a22ac
commit
3a479cb573
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user