From eb7bd24e91ea68d57bfd0ebf829e6cf474e1f554 Mon Sep 17 00:00:00 2001 From: youz2me Date: Tue, 17 Sep 2024 02:32:25 +0900 Subject: [PATCH] =?UTF-8?q?fix/#388=20=EC=95=BD=EC=86=8D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=ED=99=94=EB=A9=B4=20=EB=A1=9C=EC=A7=81=20=EB=B0=94?= =?UTF-8?q?=EB=A1=9C=20=EB=84=98=EC=96=B4=EA=B0=80=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChooseContentViewController.swift | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/KkuMulKum/Source/Promise/EditPromise/ViewController/ChooseContentViewController.swift b/KkuMulKum/Source/Promise/EditPromise/ViewController/ChooseContentViewController.swift index a11b161f..70a9c772 100644 --- a/KkuMulKum/Source/Promise/EditPromise/ViewController/ChooseContentViewController.swift +++ b/KkuMulKum/Source/Promise/EditPromise/ViewController/ChooseContentViewController.swift @@ -106,12 +106,14 @@ private extension ChooseContentViewController { }) viewModel.isSuccess.bindOnMain(with: self) { owner, success in - let viewController = AddPromiseCompleteViewController(promiseID: self.viewModel.promiseID) - - viewController.setupNavigationBarTitle(with: "약속 수정하기") - viewController.rootView.titleLabel.text = "약속이 수정되었어요!" - - self.navigationController?.pushViewController(viewController, animated: true) + if success { + let viewController = AddPromiseCompleteViewController(promiseID: self.viewModel.promiseID) + + viewController.setupNavigationBarTitle(with: "약속 수정하기") + viewController.rootView.titleLabel.text = "약속이 수정되었어요!" + + self.navigationController?.pushViewController(viewController, animated: true) + } } }