Skip to content

Commit

Permalink
ensure it project page wont break
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Rb3 committed Apr 9, 2024
1 parent 73384dc commit 82b2700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/potlock/widget/Project/Detail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const isObjectNotEmpty = (obj) => Object.keys(obj).length > 0;

const addressExist = account?.body?.account[0];

if (!isObjectNotEmpty(addressExist || {}))
if (!isObjectNotEmpty(addressExist || {}) && !registration)
return <div style={{ marginTop: "1rem", fontSize: "1.5rem" }}>Account does not exist.</div>;

const [directDonations, setDirectDonations] = useState(null);
Expand Down

0 comments on commit 82b2700

Please sign in to comment.