Skip to content

Commit

Permalink
Merge pull request #74 from AppSci/bugfix/Explicity-specify-return-ty…
Browse files Browse the repository at this point in the history
…pe-of-locaized-price-map.-

bugfix/explicity specify return type of locaized price map.
  • Loading branch information
nick-softwaredev authored Nov 15, 2022
2 parents 126b7a1 + 2406564 commit 0920dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PandaSDK/Views/WebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ extension WebViewController {
}

func sendLocalizedPrices(products: [String: SKProduct]) {
let localizedPricesToSend = products.map { product in
let localizedPricesToSend = products.map { product -> [String : Any] in
var localizedPriceInfo = [String : Any]()
localizedPriceInfo["productId"] = product.key
localizedPriceInfo["priceAmountMicros"] = Int(product.value.price.floatValue.roundedToHundredths() * 1_000_000)
Expand Down

0 comments on commit 0920dfc

Please sign in to comment.