Update index.html
This commit is contained in:
parent
3e1064d648
commit
51b9214f2a
10
index.html
10
index.html
@ -796,8 +796,8 @@
|
||||
const filteredRequests = [];
|
||||
const approvedRequests = new Set();
|
||||
Object.values(kycRequests).forEach((request) => {
|
||||
const { time, tag, note, senderID, receiverID } = request;
|
||||
if (!floCrypto.isSameAddr(receiverID, floDapps.user.id)) return;
|
||||
const { message: { kycVerifier }, time, tag, note, senderID } = request;
|
||||
if (!floCrypto.isSameAddr(kycVerifier, floDapps.user.id)) return; // only show requests sent to this user
|
||||
const floAddress = getFloAddress(senderID)
|
||||
if (status === 'pending') {
|
||||
if (approvedRequests.has(floAddress))
|
||||
@ -953,7 +953,7 @@
|
||||
const fileEntryResponse = await floCloudAPI.sendGeneralData({
|
||||
docType: selectedIdProof,
|
||||
docVectorClock: vectorClock,
|
||||
receiverID: floCrypto.getFloID(selectedVerifier),
|
||||
kycVerifier: floCrypto.getFloID(selectedVerifier),
|
||||
}, 'userKycRequests')
|
||||
fileEntryResponse.message = floCloudAPI.util.decodeMessage(fileEntryResponse.message)
|
||||
// add file entry to general data
|
||||
@ -1852,9 +1852,7 @@
|
||||
}
|
||||
promises.push(floCloudAPI.resetObjectData('kycDocs'))
|
||||
}
|
||||
promises.push(floCloudAPI.requestGeneralData('userKycRequests'), {
|
||||
receiverID: floGlobals.myFloID,
|
||||
})
|
||||
promises.push(floCloudAPI.requestGeneralData('userKycRequests'))
|
||||
await Promise.all(promises)
|
||||
// add subadmin public key to kycDocs if not present
|
||||
if (!floGlobals.appObjects.kycDocs.issuers[floGlobals.myFloID]) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user