연령 제한에 따른 성별 제한 전송 조정
This commit is contained in:
@@ -64,7 +64,13 @@ final class LiveRoomCreateViewModel: ObservableObject {
|
||||
}
|
||||
}
|
||||
|
||||
@Published var isAdult = false
|
||||
@Published var isAdult = false {
|
||||
didSet {
|
||||
if !isAdult {
|
||||
genderRestriction = .ALL
|
||||
}
|
||||
}
|
||||
}
|
||||
@Published var genderRestriction: GenderRestriction = .ALL
|
||||
@Published var priceString = "0" {
|
||||
didSet {
|
||||
@@ -179,7 +185,7 @@ final class LiveRoomCreateViewModel: ObservableObject {
|
||||
tags: tags,
|
||||
numberOfPeople: Int(numberOfPeople)!,
|
||||
isAdult: isAdult,
|
||||
genderRestriction: genderRestriction,
|
||||
genderRestriction: isAdult ? genderRestriction : .ALL,
|
||||
price: price,
|
||||
type: roomType,
|
||||
password: (roomType == .PRIVATE && !password.trimmingCharacters(in: .whitespaces).isEmpty) ? password : nil,
|
||||
|
||||
Reference in New Issue
Block a user