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