Skip to content

Commit

Permalink
fix: payment token unit on listing form
Browse files Browse the repository at this point in the history
  • Loading branch information
X committed Aug 12, 2024
1 parent 4e77bb3 commit b820688
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/frontend/src/listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Button,
CopyToClipboard,
depositFromWallet,
paymentTokenData,
paymentTokenId,
token,
tokenBase,
Expand All @@ -15,7 +14,7 @@ export const Listing = ({ tokenId }: { tokenId: string }) => {
const amount = BigInt(
window.data.listing_price_usd * tokenBase(paymentTokenId()),
);
const { symbol, decimals } = paymentTokenData();
const { symbol, decimals } = window.tokenData[paymentTokenId()];
const price = (
<code>
{token(amount, decimals)} {symbol}
Expand Down

0 comments on commit b820688

Please sign in to comment.