I have received the `boolean` value and set to setNomStatus, but how can I check if that is true to show setShowCalender(true) ?

```
const [nomStatus, setNomStatus] = useState(false);

  useEffect(() => {
    const fetchData = async () => {
      const email = localStorage.getItem("loginEmail");
      try {
        const res = await Axios.get(
          "http://localhost:8000/service/activeStatus", {email}
        );
        setNomStatus(res.data[0].status);
        console.log("Get status data :" + res.data[0].status);
        if(nomStatus == true){
          setShowCalender(true);
        }
      } catch (e) {
        console.log(e);
      }
    };
    fetchData();
  }, []);

```

[![enter image description here](https://i.stack.imgur.com/3GUEm.png)](https://i.stack.imgur.com/3GUEm.png)