Skip to content

Commit

Permalink
fix: [#174179069] fix pin insertion overflow (#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Undermaken authored Aug 6, 2020
1 parent 0a0d659 commit c3fc106
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/components/Pinpad/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ class Pinpad extends React.PureComponent<Props, State> {
};

private handlePinDigit = (digit: string) =>
this.handleChangeText(`${this.state.value}${digit}`);
this.handleChangeText(
`${this.state.value}${digit}`.substr(0, this.state.pinLength)
);

public debounceClear = debounce(() => {
this.setState({ value: "" });
Expand Down

0 comments on commit c3fc106

Please sign in to comment.