Skip to content

Commit

Permalink
hiding stop button while no request is done
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianca Wentzel committed Sep 25, 2024
1 parent cfda87d commit 5e7f72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/Containers/FrevaGPT/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ const ChatBot = () => {
<FormControl type="text" value={question} onChange={handleInputChange} onKeyDown={handleKeyDown} placeholder="Ask a question" disabled={loading}/>
{loading
? (<Button variant="outline-danger" id="button-addon2" onClick={handleStop}>&#9632;</Button>)
: (<Button variant="outline-danger" id="button-addon2" onClick={handleStop}>&#9632;</Button>)
: null
}

</InputGroup>
Expand Down

0 comments on commit 5e7f72d

Please sign in to comment.