Skip to content

Commit

Permalink
Merge pull request #178 from stellar/bugfix/make-receiver-verificatio…
Browse files Browse the repository at this point in the history
…ns-optional

[Fix] Make receiver verifications optional
  • Loading branch information
marwen-abid authored Nov 6, 2024
2 parents 2e1d49c + 5991162 commit 0a55dd9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/helpers/formatReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export const formatReceiver = (receiver: ApiReceiver): ReceiverDetails => ({
// TODO: withdrawn amount
withdrawnAmount: "",
})),
verifications: receiver.verifications.map((v) => ({
verificationField: v.verification_field,
value: v.hashed_value,
confirmedAt: v.confirmed_at,
})),
verifications:
receiver.verifications?.map((v) => ({
verificationField: v.verification_field,
value: v.hashed_value,
confirmedAt: v.confirmed_at,
})) || [],
});

0 comments on commit 0a55dd9

Please sign in to comment.