Skip to content

Commit

Permalink
Merge pull request #564 from hats-finance/fix/fix-vault-editor-privat…
Browse files Browse the repository at this point in the history
…e-audits

Added private audits icon
  • Loading branch information
shayzluf authored Oct 3, 2023
2 parents a492cbd + cf9fca1 commit f871205
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
5 changes: 5 additions & 0 deletions packages/web/src/assets/icons/custom/private-audits.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/web/src/components/Sidebar/NavLinks/NavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { toggleMenu } from "actions";
import { ReactComponent as AuditsIcon } from "assets/icons/custom/audits.svg";
import { ReactComponent as BountiesIcon } from "assets/icons/custom/bounties.svg";
import { ReactComponent as CommitteeToolsIcon } from "assets/icons/custom/committee_tools.svg";
import { ReactComponent as PrivateAuditsIcon } from "assets/icons/custom/private-audits.svg";
import { ReactComponent as VaultEditorIcon } from "assets/icons/custom/vault_editor.svg";
import { utils } from "ethers";
import { useVaults } from "hooks/subgraph/vaults/useVaults";
Expand Down Expand Up @@ -91,7 +92,7 @@ export default function NavLinks() {
to={`${HoneypotsRoutePaths.privateAudits}`}
onClick={handleClick}
>
<AuditsIcon />
<PrivateAuditsIcon />
<p className="normal">{t("privateAuditCompetitions")}</p>
<p className="collapsed">{t("privateCompetitions")}</p>
</StyledNavLink>
Expand Down
2 changes: 0 additions & 2 deletions packages/web/src/hooks/subgraph/vaults/useVaults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ export function VaultsProvider({ children }: PropsWithChildren<{}>) {
const tokensLeft = stakingTokens.filter((token) => !(token.address in foundTokenPrices));
const balancerTokenPrices = await getBalancerTokenPrices(tokensLeft);

console.log({ balancerTokenPrices, tokensLeft });

if (balancerTokenPrices) {
tokensLeft.forEach((token) => {
if (balancerTokenPrices.hasOwnProperty(token.address)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ export const PayoutFormPage = () => {

const handleLockPayout = async () => {
// Put decrypted submission data in the payoutData
console.log(111);
console.log(committeeSubmissions);

if (isFromSubmissions && !keystore) await initKeystore();

if (isPayoutCreated || !address || !isAuthenticated || !payoutId || isAnotherActivePayout) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export async function getVaultRepoName(vaultId: string | undefined): Promise<str
try {
const response = await axiosClient.get(`${BASE_SERVICE_URL}/github-repos/repo/${vaultId}`);
const repoName = response.data.repoName as string | undefined;
console.log(response);

return repoName;
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ export function SubmissionDescriptions() {
return alert("There was a problem encrypting the submission with Hats key. Please contact HATS team.");
}

console.log(submissionInfo);

download(
JSON.stringify({ submission: submissionInfo, sessionKey }),
`${submissionData.project?.projectName}-${new Date().getTime()}.json`
Expand Down

0 comments on commit f871205

Please sign in to comment.