version_number
This commit is contained in:
parent
941d0f1c04
commit
008269ae61
|
@ -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>}
|
||||
|
|
Loading…
Reference in New Issue