diff --git a/src/lib/utils.js b/src/lib/utils.js
index 4ea9549b4..cd1d237a0 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -36,5 +36,6 @@ export class DOMRect {
get bottom() { return this.top + this.height; }
}
+// name entry returned by node, not middleware
export const getAddressByNameEntry = (nameEntry) => ((nameEntry.pointers
&& nameEntry.pointers.find(({ key }) => key === 'account_pubkey')) || {}).id;
diff --git a/src/pages/aens/AuctionBid.vue b/src/pages/aens/AuctionBid.vue
index 2c270b972..3135a505c 100644
--- a/src/pages/aens/AuctionBid.vue
+++ b/src/pages/aens/AuctionBid.vue
@@ -139,8 +139,7 @@ export default {
const sdk = await Promise.resolve(this.$store.state.sdk);
const res = await sdk.middleware.api.getNameById(name);
if (res.status !== 'auction') throw new Error(`Unexpected name status: ${res.status}`);
- // TODO: remove after resolving https://github.com/aeternity/ae_mdw/issues/509
- const { auctionEnd, lastBid } = res.auction ?? res.info;
+ const { auctionEnd, lastBid } = res.info;
this.auctionEnd = auctionEnd;
this.lastBid = new BigNumber(lastBid.tx.nameFee).shiftedBy(-MAGNITUDE);
})();
diff --git a/src/pages/aens/AuctionDetails.vue b/src/pages/aens/AuctionDetails.vue
index c15233307..2307e3134 100644
--- a/src/pages/aens/AuctionDetails.vue
+++ b/src/pages/aens/AuctionDetails.vue
@@ -90,9 +90,7 @@ export default {
methods: {
async updateAuctionEntry() {
const sdk = await Promise.resolve(this.$store.state.sdk);
- const res = await sdk.middleware.api.getNameById(this.name);
- // TODO: remove after resolving https://github.com/aeternity/ae_mdw/issues/509
- const { auctionEnd, bids } = res.auction ?? res.info;
+ const { info: { auctionEnd, bids } } = await sdk.middleware.api.getNameById(this.name);
this.auctionEnd = auctionEnd;
this.bids = await Promise.all(bids.map(async (txId) => {
const { tx } = await sdk.middleware.api.getTxByIndex(txId);
diff --git a/src/pages/aens/NameDetails.vue b/src/pages/aens/NameDetails.vue
index 6189fa9df..5614f0ca3 100644
--- a/src/pages/aens/NameDetails.vue
+++ b/src/pages/aens/NameDetails.vue
@@ -6,7 +6,7 @@
:left-button-to="{ name: 'name-list' }"
>
@@ -17,10 +17,7 @@
{{ $t('name.details.set-default') }}
-
+
{{ $t('name.details.to-extend') }}
@@ -40,6 +37,7 @@