Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions components/Books.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class Books extends React.Component {
} else if (!isAlphanumericLess50.test(response.IAIdentifier)) {
this.setState({
isValidIdentifier: false,
IATitle: response.IAIdentifier,
IATitle: response.titleInIA,
inputDisabled: true,
});
} else {
Expand Down Expand Up @@ -329,7 +329,7 @@ class Books extends React.Component {
} else if (!isAlphanumericLess50.test(response.IAIdentifier)) {
this.setState({
isValidIdentifier: false,
IATitle: response.IAIdentifier,
IATitle: response.titleInIA,
inputDisabled: true,
});
} else {
Expand Down Expand Up @@ -365,7 +365,7 @@ class Books extends React.Component {
} else if (!isAlphanumericLess50.test(response.IAIdentifier)) {
this.setState({
isValidIdentifier: false,
IATitle: response.IAIdentifier,
IATitle: response.titleInIA,
inputDisabled: true,
});
} else {
Expand Down Expand Up @@ -427,14 +427,13 @@ class Books extends React.Component {
<ChangeIdentifier
description={
<>
The file you want to upload with title -{" "}
{this.state.IATitle} either contains special characters or
exceeds 50 characters in length. Please provide an
identifier that consists only of letters (A-Z) and numbers
(0-9).
The file you want to upload with title -{this.state.IATitle}{" "}
either contains special characters or exceeds 50 characters
in length. Please provide an identifier that consists only
of letters (A-Z) and numbers (0-9).
</>
}
inputPlaceholder="Enter a valid Identifier that is less than 50 characters and Alphanumeric"
inputPlaceholder="Enter valid identifier"
onIdentifierChange={(event) =>
this.setState({ IAIdentifier: event.target.value })
}
Expand Down