Hi,
The situation looks like coincidence, most likely your kid noticed vision loss after inguinal hernia surgery.
Next Steps
You should get thorough check up with good opthalmologist available nearby.
U can even call helpline no of VINOD EYE CENTRE NOIDA (available Google)
Health Tips
please avoid optician, go for opthalmologist.