diff --git a/src/components/Map/MapViewer/utils/config/pinsLayer/getBioEntitySingleFeature.test.ts b/src/components/Map/MapViewer/utils/config/pinsLayer/getBioEntitySingleFeature.test.ts index 0b8e02700e5602a0d989a21d65b76e6af899851b..2455acf1750809a890cb70699aff608d84a21b80 100644 --- a/src/components/Map/MapViewer/utils/config/pinsLayer/getBioEntitySingleFeature.test.ts +++ b/src/components/Map/MapViewer/utils/config/pinsLayer/getBioEntitySingleFeature.test.ts @@ -84,7 +84,7 @@ describe('getBioEntitySingleFeature - subUtil', () => { }); expect(getPinStyleSpy).toHaveBeenCalledWith({ - color: addAlphaToHexString(PINS_COLORS.bioEntity, 0.5), + color: addAlphaToHexString(PINS_COLORS[type], 0.5), value, textColor: addAlphaToHexString(TEXT_COLOR, 0.5), }); diff --git a/src/components/Map/MapViewer/utils/config/pinsLayer/getBioEntitySingleFeature.ts b/src/components/Map/MapViewer/utils/config/pinsLayer/getBioEntitySingleFeature.ts index cdb44412ba4ff32308adaa3a9da2a081f2782365..0bdc00fb4c56685316a0751e57143c1e3874de05 100644 --- a/src/components/Map/MapViewer/utils/config/pinsLayer/getBioEntitySingleFeature.ts +++ b/src/components/Map/MapViewer/utils/config/pinsLayer/getBioEntitySingleFeature.ts @@ -25,7 +25,7 @@ export const getBioEntitySingleFeature = ( ): Feature => { const color = isActive ? PINS_COLORS[type] - : addAlphaToHexString(PINS_COLORS.bioEntity, INACTIVE_ELEMENT_OPACITY); + : addAlphaToHexString(PINS_COLORS[type], INACTIVE_ELEMENT_OPACITY); const textColor = isActive ? TEXT_COLOR