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

8 lines
230 B
JavaScript
Raw Permalink Normal View History

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