Skip to content

Commit

Permalink
Merge pull request metaplex-foundation#8 from marksirvine/fix
Browse files Browse the repository at this point in the history
added null check on array
  • Loading branch information
stegaBOB authored Aug 25, 2022
2 parents 54530fd + 861f819 commit 435ddc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gumdrop/src/utils/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const envFor = (connection: Connection): string => {
const endpoint = (connection as any)._rpcEndpoint;
const regex = /https:\/\/metaplex.([^.]*).rpcpool.com/;
const match = endpoint.match(regex);
if (match[1]) {
if (match && match[1]) {
return match[1];
}
return 'mainnet-beta';
Expand Down

0 comments on commit 435ddc8

Please sign in to comment.