Skip to content

Commit

Permalink
fix/sr-validate-share
Browse files Browse the repository at this point in the history
  • Loading branch information
Damilola Debel committed Feb 29, 2024
1 parent 0e4faf0 commit e4acc37
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ export class SocialRecoveryImportShareValidatePage implements OnInit {
private splitString(words: string): [string, string] {
const wordArray = words.split(' ')

if (wordArray.length !== this.maxWords) {
throw new Error(`Share string must contain exactly ${this.maxWords} words.`)
}

const firstHalf = wordArray.slice(0, 24).join(' ')
const secondHalf = wordArray.slice(24).join(' ')

Expand Down

0 comments on commit e4acc37

Please sign in to comment.