Skip to content

Commit

Permalink
fix: guarantee persona proofs (#11921)
Browse files Browse the repository at this point in the history
closes #11920
  • Loading branch information
swkatmask authored Nov 13, 2024
1 parent f41cc07 commit 2f6a199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/hooks/usePersonaProofs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function usePersonaProofs(publicKey?: string): UseQueryResult<BindingProo
queryFn: async () => {
if (Sniffings.is_popup_page) await NextIDProof.clearPersonaQueryCache(publicKey!)
const binding = await NextIDProof.queryExistedBindingByPersona(publicKey!)
return binding?.proofs ?? EMPTY_LIST
return Array.isArray(binding?.proofs) ? binding.proofs : EMPTY_LIST
},
})
const { refetch } = result
Expand Down

0 comments on commit 2f6a199

Please sign in to comment.