Skip to content

Commit

Permalink
handle possible null proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
CassandraGoose committed Mar 22, 2024
1 parent 2aa0314 commit 1d699ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/profile/_components/ProofButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function ProofButtons({
}) {
const pathname = usePathname();

return competency.proofs.length > 0 ? (
return competency.proofs && competency.proofs.length > 0 ? (
<div>
<ul className="flex flex-wrap justify-start">
{competency.proofs.map((proof) => {
Expand Down

0 comments on commit 1d699ba

Please sign in to comment.