Skip to content

Commit

Permalink
fix: Type error for getIdentityProviders
Browse files Browse the repository at this point in the history
  • Loading branch information
winor30 committed Nov 10, 2020
1 parent 84bf0dd commit 077580a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/react-app/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react'
import * as W3c from 'daf-w3c'
import * as TG from 'daf-trust-graph'
import * as W3c from 'daf-w3c'
import React, { useEffect, useState } from 'react'
import { agent } from './setup'
const {
BaseStyles,
Expand Down Expand Up @@ -33,9 +33,8 @@ const App: React.FC = () => {
const [identities, setIdentities] = useState([{ identityProviderType: '', did: '' }])

useEffect(() => {
agent.identityManager.getIdentityProviders().then((providers: any) => {
setIdentityProviders(providers)
})
const providers = agent.identityManager.getIdentityProviders()
setIdentityProviders(providers)
}, [])

const updateIdentityList = () => {
Expand Down Expand Up @@ -68,7 +67,7 @@ const App: React.FC = () => {
},
} as W3c.ActionSignW3cVc)

console.log(credential)
console.log('credential', credential)

// Send credential using TrustGraph
await agent.handleAction({
Expand Down

0 comments on commit 077580a

Please sign in to comment.