Skip to content

Commit

Permalink
Fix tip parsing logic in iOS (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lin-bbpos authored Dec 13, 2024
1 parent 7cdfc33 commit 3c21fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Mappers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ class Mappers {

class func mapFromAmountDetails(_ amountDetails: SCPAmountDetails?) -> NSDictionary {
let amount: NSDictionary = [
"amount": amountDetails?.tip ?? NSNull(),
"amount": amountDetails?.tip?.amount ?? NSNull(),
]

let result: NSDictionary = [
Expand Down

0 comments on commit 3c21fd6

Please sign in to comment.