diff --git a/src/components/images/TrezorImage/index.js b/src/components/images/TrezorImage/index.js index 7a106b68..0e0c716b 100644 --- a/src/components/images/TrezorImage/index.js +++ b/src/components/images/TrezorImage/index.js @@ -15,8 +15,8 @@ const Img = styled.img` `; const TrezorImage = ({ model }: Props) => { - // $FlowIssue: `require` must be a string literal. const imageName = model === 'One' ? 1 : model; + // $FlowIssue: `require` must be a string literal. const src = require(`./images/trezor-${imageName}.png`); // eslint-disable-line return (