If your iPhone is exposed to water, you should use a clean cloth to wipe it. Then dry the whole device especially the charging post. Don't charge it when it's not dried and cleaned fully.