Chosen Solution

I recently noticed that my MacBook Air isn’t staying on past 10 minutes off the charger. I have a powered USB hub connected at all times when using the computer but disconnected when not using it. Could this be a battery issue? I’ve had this computer since mid 2016.

Yep! You need a new battery! MacBook Air 13" (Late 2010-2017) Battery and here’s the guide to put it in MacBook Air 13" Early 2015 Battery Replacement