Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Disable vCow balance dropdown on profile page (#2291)
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadV91 authored Jan 25, 2022
1 parent 7355deb commit 22eb955
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/custom/pages/Profile/VCOWDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback, useMemo, useRef, useState } from 'react'
import { useCallback, /* useMemo, */ useRef, useState } from 'react'
import styled from 'styled-components/macro'
import { useOnClickOutside } from 'hooks/useOnClickOutside'
import { ChevronDown } from 'react-feather'
Expand All @@ -18,7 +18,9 @@ export default function VCOWDropdown({ balance }: VCOWDropdownProps) {
const node = useRef<HTMLDivElement>(null)
useOnClickOutside(node, open ? toggle : undefined)

const hasBalance = useMemo(() => balance?.greaterThan(0), [balance])
// Disabled dropdown for now
// const hasBalance = useMemo(() => balance?.greaterThan(0), [balance])
const hasBalance = false

return (
<Wrapper ref={node}>
Expand Down

0 comments on commit 22eb955

Please sign in to comment.