fix PosePicker style bug

oops another thing I missed in the refactor! I wasn't providing the selected pose to the hook, so it wasn't styling any of the poses as selected. Now it does again!
This commit is contained in:
Emi Matchu 2020-08-12 00:35:11 -07:00
parent ca92af0cf3
commit 12bd9f6b17

View file

@ -51,7 +51,7 @@ function PosePicker({
}) {
const theme = useTheme();
const checkedInputRef = React.useRef();
const { loading, error, poseInfos } = usePoses(speciesId, colorId);
const { loading, error, poseInfos } = usePoses(speciesId, colorId, pose);
if (loading) {
return null;