diff --git a/app/src/main/java/com/sopt/umbba_android/presentation/qna/ConfirmAnswerDialogFragment.kt b/app/src/main/java/com/sopt/umbba_android/presentation/qna/ConfirmAnswerDialogFragment.kt index 96c0682b..7c6a9bec 100644 --- a/app/src/main/java/com/sopt/umbba_android/presentation/qna/ConfirmAnswerDialogFragment.kt +++ b/app/src/main/java/com/sopt/umbba_android/presentation/qna/ConfirmAnswerDialogFragment.kt @@ -46,7 +46,7 @@ class ConfirmAnswerDialogFragment : DialogFragment() { } private fun observeResponseStatus() { - viewModel.responseStatus.observe(this) { + viewModel.responseStatus.observe(viewLifecycleOwner) { if (it == 201) { dismiss() requireActivity().finish()