Skip to content

Commit

Permalink
fix: use short date instead of time from current date
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir committed Feb 12, 2024
1 parent 3d8e0d3 commit d82b225
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
23 changes: 13 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class W3mOnRampActivityView extends LitElement {

// -- Members ------------------------------------------- //
private unsubscribe: (() => void)[] = []

private refetchTimeout: NodeJS.Timeout | undefined = undefined

// -- State & Properties -------------------------------- //
Expand Down Expand Up @@ -63,7 +64,7 @@ export class W3mOnRampActivityView extends LitElement {
// -- Private ------------------------------------------- //
private templateTransactions(transactions: Transaction[]) {
return transactions?.map(transaction => {
const date = DateUtil.getRelativeDateFromNow(transaction.metadata.minedAt)
const date = DateUtil.formatDate(transaction?.metadata?.minedAt)
const transfer = transaction.transfers[0]
const fungibleInfo = transfer?.fungible_info

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export class WuiOnRampActivityItem extends LitElement {
private async fetchTokenImage() {
await ApiController._fetchTokenImage(this.purchaseCurrency)
}

private statusIconTemplate() {
if (this.inProgress) {
return null
Expand Down

0 comments on commit d82b225

Please sign in to comment.