add condition to see if public key exists in node

This commit is contained in:
Phillip Lang Martinez 2022-08-24 15:45:01 +03:00
parent 3ddd8009f5
commit b6caf16645

View File

@ -147,9 +147,9 @@ class BecomeMinter extends LitElement {
} }
render() { render() {
console.log({ mintingAccountData: this.mintingAccountData });
const findMintingAccount = this.mintingAccountData?.find( const findMintingAccount = this.mintingAccountData?.find(
(ma) => !!ma.publicKey (ma) => ma.publicKey === window.parent.reduxStore.getState().app?.selectedAddress
?.base58PublicKey
); );
const isAlreadySponsored = const isAlreadySponsored =