Updated promise code in Transitions to match tutorial content.