Skip to content

Commit

Permalink
Merge pull request #3696 from BitGo/abanka27/CE-1242-fix-key-card-npe
Browse files Browse the repository at this point in the history
  • Loading branch information
abanka27 authored Jun 28, 2023
2 parents 0218e97 + eddebbf commit 18f1c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/key-card/src/drawKeycard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export async function drawKeycard({ activationCode, questions, keyCardImage, qrD
y = moveDown(y, 35);
const qrSize = 130;

const qrKeys = ['user', 'passcode', 'backup', 'bitgo'];
const qrKeys = ['user', 'passcode', 'backup', 'bitgo'].filter(key => !!qrData[key]);
for (let index = 0; index < qrKeys.length; index++) {
const name = qrKeys[index];
if (index === 2) {
Expand Down

0 comments on commit 18f1c89

Please sign in to comment.