Skip to content

Commit 8daaf4c

Browse files
committed
use merge
1 parent 9fe5b12 commit 8daaf4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

StudyplusSDK/StudyplusRecord.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ public struct StudyplusRecord {
115115
params["comment"] = comment
116116
}
117117

118-
if let amount = self.amount {
119-
for (k, v) in amount.requestParams() {
120-
params[k] = v
118+
if let amount = self.amount {
119+
params.merge(amount.requestParams()) { paramValue, amountValue in
120+
return paramValue
121121
}
122122
}
123123

0 commit comments

Comments
 (0)