From 7c1d94cd55f765bd9d5addd370f4927dfd225180 Mon Sep 17 00:00:00 2001 From: JoelVR17 Date: Tue, 18 Feb 2025 17:34:09 -0600 Subject: [PATCH] fix: calculate platform amount based on platform fee in SuccessDialog component --- src/components/modules/escrow/ui/dialogs/SuccessDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/modules/escrow/ui/dialogs/SuccessDialog.tsx b/src/components/modules/escrow/ui/dialogs/SuccessDialog.tsx index 4a284c2..9f8093c 100644 --- a/src/components/modules/escrow/ui/dialogs/SuccessDialog.tsx +++ b/src/components/modules/escrow/ui/dialogs/SuccessDialog.tsx @@ -139,8 +139,8 @@ export const SuccessReleaseDialog = ({ // Amount const trustlessAmount = (totalAmount * trustlessPercentage) / 100; - const platformAmount = totalAmount; const serviceProviderAmount = (totalAmount * serviceProviderPercentage) / 100; + const platformAmount = (totalAmount * platformFee) / 100; return (