diff --git a/KeKi/Scenes/Login/UserProfileSetting/BuyerProfileSetViewController.swift b/KeKi/Scenes/Login/UserProfileSetting/BuyerProfileSetViewController.swift index 1c58e6b..a5c46eb 100644 --- a/KeKi/Scenes/Login/UserProfileSetting/BuyerProfileSetViewController.swift +++ b/KeKi/Scenes/Login/UserProfileSetting/BuyerProfileSetViewController.swift @@ -163,6 +163,9 @@ extension BuyerProfileSetViewController { self?.editProfileRequest(param: editedUserInfo) print(editedUserInfo) } + } else { + let editedUserInfo = Signup(nickname: nickname, profileImg: "") + editProfileRequest(param: editedUserInfo) } } else { showAlert(message: "닉네임을 입력해주세요") } diff --git a/KeKi/Scenes/Store/TabViewController.swift b/KeKi/Scenes/Store/TabViewController.swift index 145c58f..dffd0de 100644 --- a/KeKi/Scenes/Store/TabViewController.swift +++ b/KeKi/Scenes/Store/TabViewController.swift @@ -97,7 +97,10 @@ extension TabViewController: TabDelegate { APIManeger.shared.testGetData(urlEndpointString: "/posts", dataType: SearchResultResponse.self, parameter: queryParam) { response in - storeImageCV.configure(feeds: response.result.feeds!, storeIdx: storeIdx, cursorIdx: response.result.cursorIdx!, hasNext: response.result.hasNext) +// storeImageCV.configure(feeds: response.result.feeds!, storeIdx: storeIdx, cursorIdx: response.result.cursorIdx!, hasNext: response.result.hasNext) + if let _ = response.result.cursorIdx { + storeImageCV.configure(feeds: response.result.feeds!, storeIdx: storeIdx, cursorIdx: response.result.cursorIdx!, hasNext: response.result.hasNext) + } } APIManeger.shared.testGetData(urlEndpointString: "/desserts", dataType: ProductResponse.self, parameter: queryParam) { response in