Skip to content

Commit

Permalink
fix(tx-details): fix buy contract wrong precision on fail (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasportella authored Nov 8, 2023
1 parent 37c9704 commit 61ee3ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/TransactionContractComponents/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,7 @@ export const Buy: React.FC<IContractBuyProps> = ({
const getPrecisionsToSearch = filteredReceipts
.map(receipt => receipt.assetId)
.filter(precision => precision !== undefined);
getPrecisionsToSearch.push(currencyId, assetId);
const precisions = usePrecision(getPrecisionsToSearch);
const renderMarketBuy = () => {
const buyReceipt = findReceipt(filteredReceipts, 16) as
Expand Down

0 comments on commit 61ee3ca

Please sign in to comment.