Skip to content

Commit

Permalink
fix(e2e): account tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fkrause98 committed Apr 23, 2024
1 parent b9d74a2 commit a1d1b4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/api/src/balance/balance.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export class Balance extends BaseEntity {

@AfterLoad()
populateBaseToken() {
if (!this.token && this.tokenAddress.toLowerCase() === baseTokenData.l2Address.toLowerCase()) {
if (
!this.token &&
(this.tokenAddress === undefined || this.tokenAddress.toLowerCase() === baseTokenData.l2Address.toLowerCase())
) {
this.token = baseTokenData as Token;
}
}
Expand Down

0 comments on commit a1d1b4e

Please sign in to comment.