Skip to content

Commit 6f566bb

Browse files
authored
Merge pull request #293 from TaskarCenterAtUW/bug-2367-delimeter-issue-on-multi-choice-quest-type
Fixed multi choice quest answer delimiter issue with ';'
2 parents 94afbb6 + bfb7111 commit 6f566bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GoInfoGame/GoInfoGame/quests/LongQuests/Components/QuestOptions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private extension QuestOptions {
166166
}
167167

168168
private func initializeSelectedValues() {
169-
let currentSelectedValues = Set((selectedChoice?.value ?? "").components(separatedBy: ", ").filter { !$0.isEmpty })
169+
let currentSelectedValues = Set((selectedChoice?.value ?? "").components(separatedBy: ";").filter { !$0.isEmpty })
170170
if selectedValues != currentSelectedValues {
171171
selectedValues = currentSelectedValues
172172
}
@@ -181,7 +181,7 @@ private extension QuestOptions {
181181
}
182182

183183
private func updateSelectedChoice() {
184-
let combinedValue = selectedValues.sorted().joined(separator: ", ")
184+
let combinedValue = selectedValues.sorted().joined(separator: ";")
185185

186186
if combinedValue.isEmpty {
187187
if selectedChoice != nil {

0 commit comments

Comments
 (0)