Laptop only works when plugged in
I spilled a bit of water on my computer and ever since everything has been working fine, except I can only use my computer when it's plugged in. The battery icon at the top says 100% and the light on the magsafe is green. I ran a battery diagnostic and it says everything is working fine. If I'm using the computer and the cord comes unplugged it just shuts off.
Like I said, everything else is working fine, it's not running slow or getting hot. What parts could be the issue?
Oh I should add that I already tried an SMC reset to no avail.