Loading history…
; if (!sessions?.length) return ({admin ? "No charging sessions yet. The first card tap or in-app start will appear here with who, when, how, and how many kWh." : "No charging sessions of yours yet. Sessions you start — by card or in-app — appear here."}
); const totalKwh = sessions.reduce((acc, s) => acc + (s.wh ?? 0), 0) / 1000; return (| Who | Via | Gun | Started | Duration | kWh |
|---|---|---|---|---|---|
| {s.who || s.id_tag} |
|
{gunLabel(s, status?.chargers ?? {})} | {fmtTime(s.started)} | {s.ended ? ( fmtDuration(s.started, s.ended) ) : ( charging )} | {fmtKwh(s.wh)} |