mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-24 17:06:18 -05:00
Converting flags to a dict. Using test_async_client wherever tests required it.
This commit is contained in:
parent
63381c1d77
commit
cd00df5c13
9 changed files with 51 additions and 53 deletions
|
|
@ -827,7 +827,7 @@ export const StatusProvider = (props) => {
|
|||
|
||||
export const useStatusFlag = (flag) => {
|
||||
const {status} = useContext(StatusContext);
|
||||
return status && status['flags'] && status['flags'].indexOf(flag) >= 0;
|
||||
return status && status['flags'] && status['flags'][flag];
|
||||
}
|
||||
|
||||
export const useCPUTemperature = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue