Skip to content

Commit

Permalink
fix: calculate platform amount based on platform fee in SuccessDialog…
Browse files Browse the repository at this point in the history
… component
  • Loading branch information
JoelVR17 committed Feb 18, 2025
1 parent 2f92ae9 commit 7c1d94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/modules/escrow/ui/dialogs/SuccessDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Dialog open={isSuccessReleaseDialogOpen} onOpenChange={handleClose}>
Expand Down

0 comments on commit 7c1d94c

Please sign in to comment.