Skip to content

Commit

Permalink
Merge pull request #1108 from rupak-nm/dev-to-main
Browse files Browse the repository at this point in the history
Merge develop to main
  • Loading branch information
flashburst authored Nov 24, 2023
2 parents e362f11 + 6cad90e commit 007d15a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/common/CoverForm/PurchasePolicyForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const PurchasePolicyForm = ({

function referralCodeChange (e) {
setIsReferralCodeCheckPending(true)
setReferralCode(e.target.value)
setReferralCode(e.target.value.toUpperCase())
}

const coverPeriodLabels = getCoveragePeriodLabels(router.locale)
Expand Down
16 changes: 12 additions & 4 deletions src/hooks/useCalculateTotalLiquidity.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
import { useEffect, useState } from 'react'
import { useWeb3React } from '@web3-react/core'
import { config, multicall } from '@neptunemutual/sdk'
import {
useEffect,
useState
} from 'react'

import { sumOf } from '@/utils/bn'
import { getProviderOrSigner } from '@/lib/connect-wallet/utils/web3'
import { useNetwork } from '@/src/context/Network'
import { sumOf } from '@/utils/bn'
import {
config,
multicall
} from '@neptunemutual/sdk'
import { useWeb3React } from '@web3-react/core'

export const useCalculateTotalLiquidity = ({ liquidityList = [] }) => {
const [myTotalLiquidity, setMyTotalLiquidity] = useState('0')
const { library, account } = useWeb3React()
const { networkId } = useNetwork()

useEffect(() => {
if (liquidityList.length === 0) { return }

let ignore = false

const signerOrProvider = getProviderOrSigner(library, account, networkId)
Expand Down

0 comments on commit 007d15a

Please sign in to comment.