Overcooking and having too much moisture in the dough are the most likely causes. Remove the gnocchi from the pan as soon as they float. This means they are ready. Leaving them in the pan for longer will cause them to overcook and become mushy. Boiling the sweet potatoes instead of microwaving or baking will cause them to absorb water, resulting in wet and mushy gnocchi dough.