Skip to content

Commit

Permalink
fix optional chain
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-deriv committed Oct 3, 2024
1 parent cf066be commit 8a22e2f
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,8 @@ const ApiTokenTable = () => {
</div>
</div>

{isAccountChange || isLoadingTokens ? (
<Spinner />
) : tokens?.length > 0 && (
renderTable()
)}
{isAccountChange || isLoadingTokens ? ( <Spinner /> )
: tokens.length > 0 && ( renderTable() )}
</div>
);
};
Expand Down

0 comments on commit 8a22e2f

Please sign in to comment.