Why did our Switch stop charging?

It’s suddenly stopped charging. The charging for the batons still works, but not the Switch itself.

Any thoughts on why?