fix(live-room): 유료 라이브 최소 30캔 검증을 추가한다
This commit is contained in:
@@ -688,6 +688,7 @@ enum I18n {
|
||||
static var enterTitle: String { pick(ko: "제목을 입력해 주세요.", en: "Please enter a title.", ja: "タイトルを入力してください。") }
|
||||
static var enterNoticeMin5: String { pick(ko: "공지를 5자 이상 입력해주세요.", en: "Please enter at least 5 characters for the notice.", ja: "お知らせは5文字以上で入力してください。") }
|
||||
static var enterPeopleRange: String { pick(ko: "인원을 3~999명 사이로 입력해주세요.", en: "Please enter the number of people between 3 and 999.", ja: "人数を3~999名の間で入力してください。") }
|
||||
static var enterPaidPriceMin30: String { pick(ko: "유료 라이브는 30캔 이상 설정해주세요.", en: "For paid live, set at least 30 cans.", ja: "有料ライブは30can以上で設定してください。") }
|
||||
static var enterPassword6: String { pick(ko: "방 입장 비밀번호 6자리를 입력해 주세요.", en: "Please enter a 6-digit room entry password.", ja: "入室パスワード(6桁)を入力してください。") }
|
||||
}
|
||||
|
||||
|
||||
@@ -353,6 +353,12 @@ final class LiveRoomCreateViewModel: ObservableObject {
|
||||
self.isShowPopup = true
|
||||
return false
|
||||
}
|
||||
|
||||
if price > 0 && price < 30 {
|
||||
self.errorMessage = I18n.CreateLive.enterPaidPriceMin30
|
||||
self.isShowPopup = true
|
||||
return false
|
||||
}
|
||||
|
||||
if roomType == .PRIVATE && (password.trimmingCharacters(in: .whitespaces).isEmpty || password.count != 6) {
|
||||
self.errorMessage = I18n.CreateLive.enterPassword6
|
||||
|
||||
Reference in New Issue
Block a user