Store claims by claim_id and fileinfo by sd_hash #192
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,9 @@ reducers[types.RESOLVE_URI_COMPLETED] = function(state, action) {
|
||||||
if (claim) {
|
if (claim) {
|
||||||
byId[claim.claim_id] = claim;
|
byId[claim.claim_id] = claim;
|
||||||
byUri[uri] = claim.claim_id;
|
byUri[uri] = claim.claim_id;
|
||||||
|
} else if (claim === undefined && certificate !== undefined) {
|
||||||
|
byId[certificate.claim_id] = certificate;
|
||||||
|
byUri[uri] = certificate.claim_id;
|
||||||
} else {
|
} else {
|
||||||
byUri[uri] = null;
|
byUri[uri] = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue