Commit 222b90fc authored by Max Alekseenko's avatar Max Alekseenko

hide zero security score

parent 2bcb3755
......@@ -47,10 +47,6 @@ const AppSecurityReport = ({
showContractList(id, ContractListTypes.ALL);
}, [ showContractList, id ]);
if (!securityReport && !isLoading) {
return null;
}
const {
securityScore = 0,
solidityScanContractsNumber = 0,
......@@ -58,6 +54,10 @@ const AppSecurityReport = ({
totalIssues = 0,
} = securityReport?.overallInfo || {};
if ((!securityReport || !securityScore) && !isLoading) {
return null;
}
return (
<Popover isOpen={ isOpen } onClose={ onClose } placement={ popoverPlacement } isLazy>
<PopoverTrigger>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment