Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Fix issue with Gaia hub url property in api settings being undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
yknl committed Sep 4, 2019
1 parent 08071e0 commit c4bb7dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/js/auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class AuthPage extends React.Component {
appPrivateKey,
this.state.collectionScopes,
collectionsNode,
this.props.api.gaiaHubConfig,
this.props.api.gaiaHubUrl,
this.props.identitySettings[identityIndex],
this.updateIdentityCollectionSettings
)
Expand Down
6 changes: 3 additions & 3 deletions app/js/utils/collection-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function processCollectionScopes(
appPrivateKey,
collectionScopes,
collectionsNode,
gaiaHubConfig,
gaiaHubUrl,
identitySettings,
updateIdentityCollectionSettings
) {
Expand All @@ -123,15 +123,15 @@ export function processCollectionScopes(
updateIdentityCollectionSettings
)
const hubConfigsPromise =
getCollectionGaiaHubConfigs(collectionScopes, collectionsNode, gaiaHubConfig.server)
getCollectionGaiaHubConfigs(collectionScopes, collectionsNode, gaiaHubUrl)
return Promise.all([encryptionKeyPromise, hubConfigsPromise])
.then(results => {
const collectionKeys = results[0]
const collectionHubConfigs = results[1]
return updateAppCollectionKeys(
collectionScopes,
appPrivateKey,
gaiaHubConfig.server,
gaiaHubUrl,
collectionKeys,
collectionHubConfigs
)
Expand Down

0 comments on commit c4bb7dc

Please sign in to comment.