MacBook won't charge but runs off of wall charger
So, I took my macbook to the apple store in 2011 and was told there was water damage in it. I completely forgot which parts needed replacing to get the macbook to charge again. It will run off the wall adapter just fine until it gets unplugged. On an unrelated note the keyboard needs replacing due to said water damage as well. I am wondering what part I would need to get it to charge again?