Don't worry about double execution when developing with React, my guess: Strict Mode with a development build
Why did you set the const function drawDealerCard as a dependecy for your useEffect hook? This hook triggers upon changes of the provided dependencies, hence it gets called upon changes of isDealerHidden and drawDealerCard. I reckon to only keep isDealerHidden.