diff --git a/webclient/src/Home.js b/webclient/src/Home.js index d544a84..6ee0e80 100644 --- a/webclient/src/Home.js +++ b/webclient/src/Home.js @@ -18,6 +18,8 @@ function MemberInfo(props) { const lastTrain = user.training?.sort((a, b) => a.session.datetime < b.session.datetime ? 1 : -1).slice(0,3); const lastCard = user.cards?.sort((a, b) => a.last_seen < b.last_seen)[0]; + const unpaidTraining = user.training?.filter(x => x.attendance_status === 'Waiting for payment'); + return (