Skip to content

Commit

Permalink
Merge pull request #1413 from botpress/f_fix-assign-to-cluste
Browse files Browse the repository at this point in the history
fix(admin): update license key when use on this server
  • Loading branch information
rndlaine committed Feb 4, 2019
2 parents 9285023 + 6a5ad2b commit a226324
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -63,9 +63,9 @@ export default class KeyListItem extends Component {
this.setState({ isLoading: true })

try {
const licenseKey = await this.activateWithServerFingerprint()
await this.updateServerKey(licenseKey)
this.props.onLicenseUpdated(licenseKey)
const key = await this.activateWithServerFingerprint()
await this.updateServerKey(key)
this.props.onLicenseUpdated({ ...this.props.license, fingerprint: this.props.clusterFingerprint, assigned: true })
} catch (error) {
console.log('error while setting up license')
}
Expand Down

0 comments on commit a226324

Please sign in to comment.