Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Fix liquidity orders on rinkeby #1238

Merged
merged 2 commits into from
Jul 17, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/PoolingWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,13 @@ const PoolingInterface: React.FC = () => {
)
}, [tokenList])

const [selectedTokensMap, setSelectedTokensMap] = useSafeState<Map<number, TokenDetails>>(setFullTokenMap(tokens))
const [selectedTokensMap, setSelectedTokensMap] = useSafeState<Map<number, TokenDetails>>(() =>
setFullTokenMap(tokens),
)

useEffect(() => {
setSelectedTokensMap(setFullTokenMap(tokens))
}, [setSelectedTokensMap, tokens])

const methods = useForm<PoolingFormData>({
defaultValues: {
Expand Down