diff --git a/package-lock.json b/package-lock.json index ddbd1e3..54cba2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "buzzword-bingo", - "version": "0.3.1", + "version": "0.3.2", "dependencies": { "next": "14.0.1", "react": "^18", diff --git a/src/app/components/bingocontroller.tsx b/src/app/components/bingocontroller.tsx index 18969e1..eca3663 100644 --- a/src/app/components/bingocontroller.tsx +++ b/src/app/components/bingocontroller.tsx @@ -14,7 +14,7 @@ function FisherYatesShuffle(array:string[]):string[]{ return array; } -export default function BingoController({buzzwords} : {buzzwords: string[]}){ +export default function BingoController({buzzwords} : {buzzwords?: string[]}){ const [size, setSize] = React.useState(5); if(buzzwords == undefined || buzzwords.length < 1) 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); @@ -30,7 +30,7 @@ export default function BingoController({buzzwords} : {buzzwords: string[]}){ 4x4 5x5 - setItems(FisherYatesShuffle(buzzwords))}>Regenerate + setItems(FisherYatesShuffle(buzzwords!))}>Regenerate {sizeError &&