version_number

This commit is contained in:
ahmed531998 2023-08-30 12:24:57 +02:00
parent 941d0f1c04
commit 008269ae61
1 changed files with 1 additions and 4 deletions

View File

@ -18,10 +18,6 @@ const ChatPage = () => {
const [err, setErr] = useState("");
const version = process.env.REACT_APP_VERSION_INFO;
if (!version) {
console.info("No version information present at build time.");
}else{console.info(version);}
useEffect(() => {
if (stat === "waiting"){
@ -77,6 +73,7 @@ const ChatPage = () => {
}
return (
<div>
{<p> Version: {version} </p>}
{stat==="waiting" && <p>Loading resources + {token} ...</p>}
{stat==="start" && <p>Connecting to Server + {token} ...</p>}
{stat==="rejected" && <p>Unauthorized Use + {token} ...</p>}