Consider using await instead of then, and extracting the callback function as a separate method. <img width="526" alt="2023-05-07_022949" src="https://user-images.githubusercontent.com/23090085/236641105-39e6809f-729e-4067-a92b-9450a3a07052.png">