Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e02124 commit 12dd676Copy full SHA for 12dd676
1 file changed
frontend/src/pages/HeadsUpPage.tsx
@@ -50,9 +50,7 @@ const HeadsUpPage = () => {
50
useEffect(() => {
51
//Attaches socket listeners for each value of the data object on mount
52
Object.keys(data).forEach((name) => {
53
- console.log("update name: " + name);
54
socket.on(name, (update: Update) => {
55
- console.log("update name 2: " + name + update);
56
setData((oldData) => {
57
const updatedData = {
58
...oldData,
@@ -131,7 +129,7 @@ const HeadsUpPage = () => {
131
129
justifyContent: "center",
132
130
}}
133
>
134
- <AlertBox data={["low bat", "sldkfj"]}/>
+ <AlertBox data={ data.battery_temp.length !== 0 && data.battery_temp[0].value>50 ? ["high bat tmp"] : [] }/>
135
</Paper>
136
</Box>
137
<VideoFeed />
0 commit comments