diff --git a/package.json b/package.json index 72b0554fb..7d3edb523 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polkaswap-exchange-web", - "version": "1.1.0", + "version": "1.1.1", "license": "Apache-2.0", "private": true, "author": "jihoon@tutanota.de ", diff --git a/src/views/AddLiquidity.vue b/src/views/AddLiquidity.vue index ceca415df..c83bfed23 100644 --- a/src/views/AddLiquidity.vue +++ b/src/views/AddLiquidity.vue @@ -189,10 +189,6 @@ export default class AddLiquidity extends Mixins(TokenPairMixin) { @Action('updateAccountLiquidity', { namespace: 'pool' }) updateAccountLiquidity @Action('destroyUpdateAccountLiquiditySubscription', { namespace: 'pool' }) destroyUpdateAccountLiquiditySubscription - async mounted (): Promise { - await this.withApi(this.updateAccountLiquidity) - } - destroyed (): void { this.destroyUpdateAccountLiquiditySubscription() } @@ -242,6 +238,8 @@ export default class AddLiquidity extends Mixins(TokenPairMixin) { } async afterApiConnect (): Promise { + await this.updateAccountLiquidity() + if (this.firstAddress && this.secondAddress) { await this.setDataFromLiquidity({ firstAddress: this.firstAddress,