Skip to content

Commit

Permalink
fix: wrong "search by structure" button status
Browse files Browse the repository at this point in the history
close: #1603
  • Loading branch information
hamed-musallam committed Jul 1, 2022
1 parent fed6872 commit 8c84764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/component/panels/databasePanel/DatabasePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,14 +333,14 @@ function DatabasePanelInner({ nucleus, selectedTool }: DatabaseInnerProps) {
onClick={openSearchByStructure}
style={{ marginLeft: '5px' }}
>
{molecule?.getAllAtoms() !== 0 ? (
<BsHexagonFill
{!molecule || molecule?.getAllAtoms() === 0 ? (
<BsHexagon
style={{
fontSize: '14px',
}}
/>
) : (
<BsHexagon
<BsHexagonFill
style={{
fontSize: '14px',
}}
Expand Down

0 comments on commit 8c84764

Please sign in to comment.