From 46fcd34e40b712548098b9da48c883ddaf007a7e Mon Sep 17 00:00:00 2001 From: Akanksha Date: Wed, 11 Oct 2023 12:52:56 +0530 Subject: [PATCH] Fix: add correct title and placeholder --- components/Books.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/components/Books.js b/components/Books.js index c3b0ce8..025aa38 100644 --- a/components/Books.js +++ b/components/Books.js @@ -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 { @@ -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 { @@ -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 { @@ -427,14 +427,13 @@ class Books extends React.Component { - 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 }) }