Sweet potato turning green

I just cooked some sweet potato now it’s turning green. Is this safe for my 13 month old to eat??