diff --git a/jam-ui/src/components/profile/JKProfileInstrumentsList.js b/jam-ui/src/components/profile/JKProfileInstrumentsList.js index cd49a5211..313f2540a 100644 --- a/jam-ui/src/components/profile/JKProfileInstrumentsList.js +++ b/jam-ui/src/components/profile/JKProfileInstrumentsList.js @@ -20,11 +20,22 @@ const JKPersonInstrumentsList = ({ instruments, showAll, toggleMoreDetails }) => showAll || !greaterThan.xs ? setInstrumentsToShow(instruments) : setInstrumentsToShow(instruments.slice(0, LIMIT)); }, [showAll]); + const instrumentIconFile = instrument => { + try { + return require(`../../icons/instruments/icon_instrument_${instrument.instrument_id.replace(/\s+/g,"_")}.svg`); + } catch (error) { + return require(`../../icons/instruments/icon_instrument_unknown.svg`); + } + + } return (