Skip to content

Commit af78e1e

Browse files
committed
Revert match handling based on fix to @bedrock/web-wallet.
1 parent 7b2a938 commit af78e1e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/ShareCredentials.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,11 @@ export default {
166166
});
167167
// FIXME: use matches directly instead of using records, UI
168168
// should better render full matches
169-
records = Array.isArray(matches.flat) ?
170-
matches.flat.map(match => match.derived?.length > 0 ?
169+
records = matches.flat.map(match => match.derived?.length > 0 ?
171170
// FIXME: temporary measure to replace content with derived VC,
172171
// instead UI should support both and prefer derived
173-
{...match.record, content: match.derived[0].derivedCredential} :
174-
match.record) : [];
172+
{...match.record, content: match.derived[0].derivedCredential} :
173+
match.record);
175174
} catch(error) {
176175
console.log('Error trying to process query: ', {error});
177176
}

0 commit comments

Comments
 (0)