Skip to content

Commit

Permalink
Demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualzone committed Apr 21, 2024
1 parent 87f8e61 commit 01e63ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend-node/src/app/vehicle-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export default function VehicleStatus({ vehicle, state }) {
}

if (state === null) state = {};
if (process.env.NODE_ENV === 'development') {
state.chargingState = 1;
state.pluggedIn = true;
state.amps = 7;
state.soc = 53;
}

return (
<div>
Expand Down

0 comments on commit 01e63ea

Please sign in to comment.