lbry-desktop/ui/util/merge-claim.js

7 lines
230 B
JavaScript

/*
new claim = { ...maybeResolvedClaim, ...pendingClaim, meta: maybeResolvedClaim['meta'] }
*/
export default function mergeClaims(maybeResolved, pending) {
return { ...maybeResolved, ...pending, meta: maybeResolved.meta };
}