From 321d85ff62917e1a6c62100a6da8cf18380e752a Mon Sep 17 00:00:00 2001 From: Wei-Jun Hung <33746295+WeiJun0827@users.noreply.github.com> Date: Thu, 24 Nov 2022 01:01:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20duplicated=20key=20in=20ev?= =?UTF-8?q?ents=20(#801)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/nft.js | 4 ++-- src/pages/nft/class/_classId/_nftId.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mixins/nft.js b/src/mixins/nft.js index 4f725fab3..1b4979a68 100644 --- a/src/mixins/nft.js +++ b/src/mixins/nft.js @@ -371,10 +371,10 @@ export default { const historyInDB = data.list; const eventMap = new Map(); historyOnChain.forEach(e => { - eventMap.set(`${e.txHash}-${e.nftId}`, e); + eventMap.set(`${e.txHash}-${e.nftId}-${e.event}`, e); }); historyInDB.forEach(e => { - const key = `${e.txHash}-${e.nftId}`; + const key = `${e.txHash}-${e.nftId}-${e.event}`; if (eventMap.has(key)) { eventMap.get(key).price = e.price; } diff --git a/src/pages/nft/class/_classId/_nftId.vue b/src/pages/nft/class/_classId/_nftId.vue index 5585951ca..7d6668910 100644 --- a/src/pages/nft/class/_classId/_nftId.vue +++ b/src/pages/nft/class/_classId/_nftId.vue @@ -102,7 +102,7 @@