Skip to content

Commit 7b7a30f

Browse files
committed
get identity only if present
1 parent 1e294b6 commit 7b7a30f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layouts/ProviderLayout/ProviderLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const ProviderLayout = () => {
3939
const fetchProvider = async () => {
4040
if (address) {
4141
const { data, success } = await getProvider({ address });
42-
if (success && data) {
42+
if (success && data?.identity) {
4343
const identityDetails = await getIdentity(data.identity);
4444
if (identityDetails.success) {
4545
setIdentity(identityDetails.data);

0 commit comments

Comments
 (0)