Using the wrong leavening agent can result in a dense, heavy, or poorly risen baked good. If you notice the mistake before baking, try to correct the issue by adjusting the recipe's leavening and acidity levels.