Battery not charging on not-yet-week-old Librem 15v3

I’ve had the same problem with my Librem 13 battery recharging only sporadically after about 2 1/2 months

What I don’t know is whether the problem is with the battery or the charging mechanism.

Am I assuming correctly that it might be one or the other?

I’ve been reluctant to spend money replacing the battery when the problem might lie in the charging hardware…