From 3c21fd6f4f2b17dbaa9336b1d44bb82c41e78225 Mon Sep 17 00:00:00 2001 From: tim-lin-bbpos Date: Sat, 14 Dec 2024 01:08:27 +0800 Subject: [PATCH] Fix tip parsing logic in iOS (#863) --- ios/Mappers.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Mappers.swift b/ios/Mappers.swift index b34647e3..cb442aaf 100644 --- a/ios/Mappers.swift +++ b/ios/Mappers.swift @@ -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 = [