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

hide zero security score

parent 2bcb3755
...@@ -47,10 +47,6 @@ const AppSecurityReport = ({ ...@@ -47,10 +47,6 @@ const AppSecurityReport = ({
showContractList(id, ContractListTypes.ALL); showContractList(id, ContractListTypes.ALL);
}, [ showContractList, id ]); }, [ showContractList, id ]);
if (!securityReport && !isLoading) {
return null;
}
const { const {
securityScore = 0, securityScore = 0,
solidityScanContractsNumber = 0, solidityScanContractsNumber = 0,
...@@ -58,6 +54,10 @@ const AppSecurityReport = ({ ...@@ -58,6 +54,10 @@ const AppSecurityReport = ({
totalIssues = 0, totalIssues = 0,
} = securityReport?.overallInfo || {}; } = securityReport?.overallInfo || {};
if ((!securityReport || !securityScore) && !isLoading) {
return null;
}
return ( return (
<Popover isOpen={ isOpen } onClose={ onClose } placement={ popoverPlacement } isLazy> <Popover isOpen={ isOpen } onClose={ onClose } placement={ popoverPlacement } isLazy>
<PopoverTrigger> <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