Skip to content

Commit

Permalink
fix: rooms generated upto max limit
Browse files Browse the repository at this point in the history
  • Loading branch information
parvez-ahammed committed Jan 9, 2025
1 parent b686568 commit f1c2efa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"scripts": {
"start": "vite --port 3000",
"build": "tsc -b && vite build",
"build": "tsc -b && vite build --watch",
"chrome:build": "npm run chrome:generate-manifest && tsc -b && vite build --mode chrome",
"chrome:generate-manifest": "node generate-manifest.js",
"serve": "npx http-server build_web --port 3000",
Expand Down Expand Up @@ -69,4 +69,4 @@
"typescript": "^5.6.3",
"vite": "^5.4.10"
}
}
}
2 changes: 1 addition & 1 deletion client/src/helpers/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function populateRoomCapacity(max: number) {
const options = [];
let capacity = 1;

while (capacity < max) {
while (capacity <= max) {
options.push(capacity.toString());
capacity += 1;
}
Expand Down

0 comments on commit f1c2efa

Please sign in to comment.