Commit 68681c80 by asranov0003

fix: home sheet status

parent 099f3349
......@@ -56,12 +56,24 @@ const Home: React.FC = () => {
<div className="home__sheet__status">
<div>
<IoBatteryHalfOutline className="home__sheet__status__icon" />
<p>{deviceData?.bat_level}%</p>
<p>
{deviceData?.bat_level ? (
<>{deviceData?.bat_level}%</>
) : (
<>0%</>
)}
</p>
</div>
<div>
<BsPersonStanding className="home__sheet__status__icon" />
<p>
{deviceData?.location.speed} {t("home.kmh")}
{deviceData?.location.speed ? (
<>
{deviceData?.location.speed} {t("home.kmh")}
</>
) : (
<>0 {t("home.kmh")}</>
)}
</p>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment