Skip to content

Commit

Permalink
Simplify header check.
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Longley <[email protected]>
  • Loading branch information
gannan08 and dlongley committed Sep 17, 2024
1 parent 17a5624 commit 810fd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function _getNFCRenderingTemplate2024({credential}) {
}

async function _decodeMultibase(input) {
const multibaseHeader = input.slice(0, 1);
const multibaseHeader = input[0];
const decoder = multibaseDecoders.get(multibaseHeader);
if(!decoder) {
throw new Error(`Multibase header "${multibaseHeader}" not supported.`);
Expand Down

0 comments on commit 810fd6d

Please sign in to comment.