From b84b3a6d22904f914c15fae0180a8f06ae8370b0 Mon Sep 17 00:00:00 2001 From: Oleg Date: Wed, 28 Feb 2024 12:14:50 +0700 Subject: [PATCH] Fixed loggin of purchased domain price --- .../PurchaseDomains/Checkout/PurchaseDomainsCheckoutView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unstoppable-ios-app/domains-manager-ios/Modules/PurchaseDomains/Checkout/PurchaseDomainsCheckoutView.swift b/unstoppable-ios-app/domains-manager-ios/Modules/PurchaseDomains/Checkout/PurchaseDomainsCheckoutView.swift index 7d204204a..c33e523d3 100644 --- a/unstoppable-ios-app/domains-manager-ios/Modules/PurchaseDomains/Checkout/PurchaseDomainsCheckoutView.swift +++ b/unstoppable-ios-app/domains-manager-ios/Modules/PurchaseDomains/Checkout/PurchaseDomainsCheckoutView.swift @@ -500,6 +500,7 @@ private extension PurchaseDomainsCheckoutView { Task { setLoading(true) do { + let totalPrice = cartStatus.totalPrice let walletsToMint = try await purchaseDomainsService.getSupportedWalletsToMint() guard let walletToMint = walletsToMint.first(where: { $0.address == selectedWallet.address }) else { throw PurchaseError.failedToGetWalletToMint @@ -507,7 +508,7 @@ private extension PurchaseDomainsCheckoutView { try await purchaseDomainsService.purchaseDomainsInTheCartAndMintTo(wallet: walletToMint) purchaseDomainsPreferencesStorage.checkoutData.discountCode = "" - logAnalytic(event: .didPurchaseDomains, parameters: [.value : String(cartStatus.totalPrice), + logAnalytic(event: .didPurchaseDomains, parameters: [.value : String(totalPrice), .count: String(1)]) let pendingPurchasedDomain = PendingPurchasedDomain(name: domain.name, walletAddress: walletToMint.address)