Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
fix: fix twitter token name when not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kenryu42 committed Feb 18, 2023
1 parent 01ceacb commit 94cd157
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Twitter/Twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ ${this.tx.interactedMarket.accountPage}${this.tx.toAddr}
const isX2Y2 = this.tx.interactedMarket.name === 'x2y2' ? '/items' : '';

const content = `
${token.name} sold for ${formatPrice(this.tx.totalPrice)} ${
this.tx.currency.name
} ${this.tx.usdPrice ? `($${this.tx.usdPrice})` : ''} on ${
this.tx.interactedMarket.displayName
}
${
token.name || `${this.tx.contractData.symbol} #${tokenId}`
} sold for ${formatPrice(this.tx.totalPrice)} ${this.tx.currency.name} ${
this.tx.usdPrice ? `($${this.tx.usdPrice})` : ''
} on ${this.tx.interactedMarket.displayName}
From: ${this.tx.fromAddrName}
${this.tx.interactedMarket.accountPage}${this.tx.fromAddr}${isX2Y2}
Expand Down

0 comments on commit 94cd157

Please sign in to comment.