Even when the potatoes have sprouted they're still okay and safe to eat and nothing will happen to you.
I've eaten sprouted potatoes a lot and they're still okay to eat although if you want to remove the sprouted part of the potato you can do so and eat it that way or just leave the sprouted part on the potato and still eat it.
Potatoes are still good even when sprouted but if the potato has shrunken and wrinkled then it means the potato has gone bad and should be thrown out.
When potatoes are sprouted the starch in the potatoes is converted into sugar but the potatoes are still very safe to eat.
Sprouted potatoes do not indicate spoilage as long as they're not shrunk or wrinkled.