Skip to content

Commit

Permalink
Hide allocator balance when not logged in (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Lelek <[email protected]>
  • Loading branch information
Filip-L and filip-neti authored Nov 18, 2024
1 parent 3cd65f6 commit 6851f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AllocatorBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface ComponentProps {
const AllocatorBalance: React.FC<ComponentProps> = ({ owner, repo }) => {
const { allocators } = useAllocator()
const { getAllocatorAllowanceFromContract } = useWallet()
const [balance, setBalance] = useState<number>(0)
const [balance, setBalance] = useState<number | null>(null)
const [loading, setLoading] = useState<boolean>(false)
const allocator = useMemo(
() => allocators.find((a) => a.owner === owner && a.repo === repo),
Expand Down

0 comments on commit 6851f2b

Please sign in to comment.