From b02e8e108d0ca724da4eff0882edf6b2ddd9c665 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 16 Aug 2023 02:00:05 +0530 Subject: [PATCH] UX improvements --- index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.html b/index.html index 3a498c0..0ff90f1 100644 --- a/index.html +++ b/index.html @@ -778,9 +778,16 @@ const { status = 'pending', address } = options; const kycRequests = floDapps.getNextGeneralData('userKycRequests', '0'); const filteredRequests = []; + const approvedRequests = new Set(); Object.values(kycRequests).forEach((request) => { const { time, tag, note, senderID } = request; const floAddress = getFloAddress(senderID) + if (status === 'pending') { + if (approvedRequests.has(floAddress)) + return; + if (tag?.includes('approved')) + approvedRequests.add(floAddress) + } if (status) { switch (status) { case 'approved':