Skip to content

Commit

Permalink
chore: remove unnecessary haschange and small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wainola authored and mpetrunic committed Jan 23, 2024
1 parent e92ff20 commit c510bc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export class AmountSelector extends LitElement {
preselectedToken?: string;

@property({
type: Number,
hasChanged: (n, o) => n !== o
type: Number
})
preselectedAmount?: number;

Expand All @@ -59,6 +58,7 @@ export class AmountSelector extends LitElement {
const amount = Number.parseFloat(this._input.value);
this.onAmountChange?.(amount);
};

_onResourceSelected = (event: Event): void => {
const { value } = event.target as HTMLOptionElement;
const resource = this.resources.find((n) => String(n.resourceId) == value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export class NetworkSelector extends LitElement {
direction?: Direction;

@property({
type: Object,
hasChanged: (n, o) => n !== o
type: Object
})
selected?: Domain;

Expand All @@ -43,8 +42,7 @@ export class NetworkSelector extends LitElement {
onNetworkSelected?: (network?: Domain) => void;

@property({
type: Array,
hasChanged: (n, o) => n !== o
type: Array
})
networks: Domain[] = [];

Expand Down

0 comments on commit c510bc8

Please sign in to comment.