Skip to content

Commit

Permalink
fix: transaction item visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk committed Dec 15, 2023
1 parent be9b7fe commit f4ab570
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/controllers/TransactionsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export const TransactionsController = {
state.transactionsByYear,
nonSpamTransactions
)
state.transactionsByYear = this.groupCoinbaseTransactionsByYear(
state.transactionsByYear,
coinbaseResponse.transactions
)
// state.transactionsByYear = this.groupCoinbaseTransactionsByYear(
// state.transactionsByYear,
// coinbaseResponse.transactions
// )
state.empty = filteredTransactions.length === 0
state.next = response.next ? response.next : undefined
} catch (error) {
Expand Down
5 changes: 3 additions & 2 deletions packages/scaffold/src/views/w3m-transactions-view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export class W3mTransactionsView extends LitElement {
return sortedYearKeys.map((year, index) => {
const isLastGroup = index === sortedYearKeys.length - 1
const yearInt = parseInt(year, 10)
const groupTitle = TransactionUtil.getTransactionGroupTitle(yearInt)
const transactions = this.transactionsByYear[yearInt]

if (!transactions) {
Expand Down Expand Up @@ -154,7 +155,7 @@ export class W3mTransactionsView extends LitElement {
id=${isLastTransaction && this.next ? PAGINATOR_ID : ''}
status=${status}
type=${type}
images=${images}
.images=${images}
.descriptions=${descriptions}
></wui-transaction-list-item>
`
Expand All @@ -172,7 +173,7 @@ export class W3mTransactionsView extends LitElement {
status=${status}
type=${type}
.onlyDirectionIcon=${true}
images=${[images?.[index]]}
.images=${[images?.[index]]}
.descriptions=${[description]}
></wui-transaction-list-item>`
})
Expand Down

0 comments on commit f4ab570

Please sign in to comment.