Skip to content

Commit a48449f

Browse files
committed
refactor(web): remove-nested-operator
1 parent 32e7ab4 commit a48449f

File tree

1 file changed

+8
-8
lines changed
  • web/src/pages/Cases/CaseDetails/Voting

1 file changed

+8
-8
lines changed

web/src/pages/Cases/CaseDetails/Voting/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ const Voting: React.FC<IVoting> = ({ arbitrable, currentPeriodIndex }) => {
7373
<br />
7474
</>
7575
)}
76-
{isDrawDataLoading ? (
77-
<>
78-
<Skeleton width={300} height={20} />
79-
<br />
80-
</>
81-
) : !userWasDrawn ? (
76+
77+
{userWasDrawn ? null : (
8278
<>
83-
<InfoCard msg="You were not drawn in current round." />
79+
{isDrawDataLoading ? (
80+
<Skeleton width={300} height={20} />
81+
) : (
82+
<InfoCard msg="You were not drawn in current round." />
83+
)}
8484
<br />
8585
</>
86-
) : null}
86+
)}
8787

8888
{isPopupOpen && (
8989
<Popup

0 commit comments

Comments
 (0)