Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Mobile: Ensure seed reentry input only accepts A-Z9 #1239

Merged
merged 1 commit into from Apr 4, 2019

Conversation

cvarley100
Copy link
Contributor

Description

  • Ensure seed reentry input only accepts A-Z9

Type of change

  • Bug fix (a non-breaking change which fixes an issue)

How Has This Been Tested?

Tested on iOS Simulator

Checklist:

  • My code follows the style guidelines for this project
  • I have performed a self-review of my own code
  • New and existing unit tests pass locally with my changes
  • For changes to mobile that include native code (including React Native modules): I have verified that both iOS and Android successfully build in both Debug and Release modes

@@ -87,7 +87,7 @@ class SeedReentry extends Component {
constructor() {
super();
this.state = {
reenteredSeed: null,
reenteredSeed: '',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change might break QR code scanning. On line 158 we set reenteredSeed to a trit value:

this.setState({ reenteredSeed: trytesToTrits(data) });

Since trytesToTrits returns an Int8Array I don't think we can initialize it to an empty string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't break it

@rajivshah3 rajivshah3 added C - Mobile T - Bug Type - Bug: Something isn't working labels Apr 2, 2019
@rajivshah3 rajivshah3 merged commit 6ceea79 into develop Apr 4, 2019
@rajivshah3 rajivshah3 deleted the bug/seed-reentry-input branch April 4, 2019 12:44
This was referenced Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C - Mobile T - Bug Type - Bug: Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants