Skip to content

Commit

Permalink
Fix settings scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
luistorres committed Apr 11, 2024
1 parent e530ed8 commit c0eb6d6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ const getNotVerifiedMessage = (status: idOSCredentialStatus | undefined) => {
};

const Status = () => {
const { getProviderUrl, address } = useIdOS();
const { getProviderUrl, address, hasProfile } = useIdOS();
const { status, error, isSuccess, isLoading } = useKyc();

if (!address) return 'wallet not connected';
if (isLoading) return 'Loading...';
if (error || !isSuccess) return 'Something went wrong';
if (error || (!isSuccess && hasProfile)) return 'Something went wrong';

const providerUrl = getProviderUrl(address);

Expand Down

0 comments on commit c0eb6d6

Please sign in to comment.