If you don't cube them small enough to fully cook in time, or don't cook them for long enough, according to the instructions, you may find that your pan fried sweet potatoes aren't cooked through and soft. They don't need to be mushy for you to enjoy them, but they should be able to be pierced without resistance.