Fix Fuel lockout

This commit is contained in:
2025-07-08 10:54:00 +02:00
parent d59ffb5e76
commit a5802f46d5
6 changed files with 6 additions and 6 deletions
@@ -71,7 +71,7 @@ const StationEntryF: FC<StationEntryProps> = ({ WASMData, loadingState, setLoadi
[WASMData.userData.isER]
);
useEffect(() => {
setFuelEnabled(inRangeOf(Math.round(WASMData.livePayload.fuel), fuel));
setFuelEnabled((prev) => (!prev ? inRangeOf(Math.round(WASMData.livePayload.fuel), fuel) : prev));
}, [WASMData.livePayload.fuel]);
return (