It depends on how much water got in it. First thing pull the battery and dry it as best you can, then, if you think water got inside, let it sit in a container of uncooked white rice for at least 24 hours.
Water damage can be tricky. Sometimes the effects won't be seen for days after the damage occurs.
Welcome to the Android forums