Skip to content

Commit

Permalink
chore: fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodressel authored and mmpetarpeshev committed Jun 25, 2024
1 parent 188bb86 commit 092bfd9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/views/RemoveLiquidity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export default {
watch: {
async address(newVal) {
if (newVal && this.pairId) {
await this.refreshAllowance(this.pairId, this.fetchAlowance);
await this.refreshAllowance(this.pairId, this.fetchAllowance);
}
},
},
Expand All @@ -278,7 +278,7 @@ export default {
this.tokenB = this.getAvailableTokens().find((t) => t.contract_id === tokenBContract);
await this.setPairInfo();
if (this.pairId) {
await this.refreshAllowance(this.pairId, this.fetchAlowance);
await this.refreshAllowance(this.pairId, this.fetchAllowance);
}
},
methods: {
Expand All @@ -293,7 +293,7 @@ export default {
tokenBSymbol: this.tokenB.symbol,
});
},
fetchAlowance() {
fetchAllowance() {
return this.$store.dispatch('aeternity/getRouterPairAllowance', {
tokenA: this.tokenA.contract_id,
tokenB: this.tokenB.contract_id,
Expand All @@ -307,7 +307,7 @@ export default {
tokenB: this.tokenB,
amount: expandDecimals(this.poolTokenInput, 18),
});
await this.safeRefreshAllowance(this.pairId, this.poolTokenInput, 18, this.fetchAlowance);
await this.safeRefreshAllowance(this.pairId, this.poolTokenInput, 18, this.fetchAllowance);
} catch (e) {
this.approved = false;
await this.$store.dispatch('showUnknownError', e);
Expand Down Expand Up @@ -371,7 +371,7 @@ export default {
await this.$store.dispatch('showUnknownError', e);
} finally {
await this.setPairInfo();
await this.refreshAllowance(this.pairId, this.fetchAlowance);
await this.refreshAllowance(this.pairId, this.fetchAllowance);
this.updatePercent(0);
this.removing = false;
}
Expand Down

0 comments on commit 092bfd9

Please sign in to comment.