Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
flenex-io committed Dec 18, 2023
1 parent 7d3e413 commit 446170f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Main = ({ state }) => {
const roomCount = await contract.room();
const parsedRoomCount = roomCount.toNumber();
setRoomCount(parsedRoomCount);

if (parsedRoomCount !== null) {
setShowRoomCount(true);
alert(`${parsedRoomCount} rooms available`);
Expand All @@ -44,7 +44,7 @@ const Main = ({ state }) => {
console.error("Error fetching room count:", error);
}
};


const checkBookedRoom = async () => {
try {
Expand Down

0 comments on commit 446170f

Please sign in to comment.