Created
September 9, 2019 01:52
-
-
Save ryanpedersen42/08af2447cbbe686ff9bef13e0bd10acc to your computer and use it in GitHub Desktop.
getSecret
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getSecret = async () => { | |
| const { displayValueKey, dappSpace } = this.state; | |
| //returns string || object.. undefined if no such key | |
| const displayValue = await dappSpace.private.get(displayValueKey) | |
| if (displayValue) { | |
| await this.setState({ displayValue, displayValueKey: '' }); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment