add useEffect dependencies

This commit is contained in:
tjs 2023-03-28 15:23:30 -04:00
parent e8fc7c7863
commit 2c0a5bdb41
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ const MarketCloseModal: FunctionComponent<MarketCloseModalProps> = ({
connection.removeAccountChangeListener(askSubscriptionId)
}
}
}, [connection, perpMarket])
}, [connection, perpMarket, group])
const handleMarketClose = useCallback(
async (bids: BidsAndAsks, asks: BidsAndAsks) => {
@ -187,7 +187,7 @@ const MarketCloseModal: FunctionComponent<MarketCloseModalProps> = ({
onClose()
}
},
[]
[perpMarket, position, group, onClose, soundSettings]
)
return (