Skip to content

Commit

Permalink
fix: nostr getPublicKey #1051
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Dec 8, 2022
1 parent bc7b862 commit b9d97f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const getPublicKeyOrPrompt = async (message: MessagePublicKeyGet) => {
);

if (hasPermission) {
const publicKey = state.getState().getNostr().getPublicKey();
const publicKey = await state.getState().getNostr().getPublicKey();
return { data: publicKey };
} else {
const promptResponse = await utils.openPrompt<{
Expand All @@ -39,7 +39,7 @@ const getPublicKeyOrPrompt = async (message: MessagePublicKeyGet) => {

if (promptResponse.data.confirm) {
// Normally `openPrompt` would throw already, but to make sure we got a confirm from the user we check this here
const publicKey = state.getState().getNostr().getPublicKey();
const publicKey = await state.getState().getNostr().getPublicKey();
return { data: publicKey };
} else {
return { error: "User rejected" };
Expand Down

0 comments on commit b9d97f3

Please sign in to comment.