Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/pages/TransactionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ export const TransactionForm = ({
const errorMessage = cngnRateError || "No available quote";
setRateError(errorMessage);
}
} else if (selectedNetwork?.chain?.name === "Ethereum") {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dprof-in-tech if (selectedNetwork?.chain?.name === "Ethereum") and (normalizedToken === "CNGN"), this still assumes that the minimum will be 50 for CNGN and other respective local currencies.
Within this if block, let's add a check for when the selected token is CNGN

// For Ethereum network, apply $50 USD minimum
minAmountSentValue = 50;
}

formMethods.register("amountSent", {
Expand Down