Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
bz888 committed Oct 9, 2023
1 parent 5168668 commit 7440220
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export default class Init extends Command {
default: defaultEndpoint[0] ?? 'wss://polkadot.api.onfinality.io/public-ws',
required: false,
});
// Should assume all project endpoints will be string[]
if (Array.isArray(this.project.endpoint)) {
if (!this.project.endpoint.includes(userInput)) {
this.project.endpoint.push(userInput);
Expand Down

0 comments on commit 7440220

Please sign in to comment.