Skip to content

Commit

Permalink
Attempt to hide empty alert
Browse files Browse the repository at this point in the history
  • Loading branch information
hbiede committed Dec 11, 2020
1 parent d5ff638 commit 1cea7f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ function App() {
id="responseDiv"
onClose={() => setResponse(null)}
dismissible={response !== null}
hidden={
response === null ||
response.content === null ||
!(
typeof response.content !== 'string' ||
response.content.trim() !== ''
)
}
>
{response?.content}
</Alert>
Expand Down

0 comments on commit 1cea7f4

Please sign in to comment.