diff --git a/core/src/main/java/org/openedx/core/presentation/dialog/appreview/ThankYouDialogFragment.kt b/core/src/main/java/org/openedx/core/presentation/dialog/appreview/ThankYouDialogFragment.kt index b09964a09..b64f09597 100644 --- a/core/src/main/java/org/openedx/core/presentation/dialog/appreview/ThankYouDialogFragment.kt +++ b/core/src/main/java/org/openedx/core/presentation/dialog/appreview/ThankYouDialogFragment.kt @@ -69,11 +69,13 @@ class ThankYouDialogFragment : BaseAppReviewDialogFragment() { val request = reviewManager.requestReviewFlow() request.addOnCompleteListener { task -> try { - val reviewInfo = task.result - val flow = reviewManager.launchReviewFlow(requireActivity(), reviewInfo) - flow.addOnCompleteListener { _ -> - onPositiveRate() - dismiss() + if (request.isSuccessful) { + val reviewInfo = task.result + val flow = reviewManager.launchReviewFlow(requireActivity(), reviewInfo) + flow.addOnCompleteListener { _ -> + onPositiveRate() + dismiss() + } } } catch (e: ReviewException) { e.printStackTrace()