From a7170e1323d1972cb659c4e3e9f3b434bbfa0c69 Mon Sep 17 00:00:00 2001 From: Daniel Sandu <daniel.sandu@thinslices.com> Date: Wed, 17 Oct 2018 10:42:37 +0300 Subject: [PATCH] fix(Logo): Used get utility for lodash --- packages/component-faraday-ui/src/Logo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/component-faraday-ui/src/Logo.js b/packages/component-faraday-ui/src/Logo.js index 906faa2a5..338312793 100644 --- a/packages/component-faraday-ui/src/Logo.js +++ b/packages/component-faraday-ui/src/Logo.js @@ -1,11 +1,12 @@ /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ import React from 'react' +import { get } from 'lodash' const Logo = ({ src, onClick, title, height = 36, ...rest }) => ( <img alt={title} - data-test-id={rest['data-test-id'] || 'journal-logo'} + data-test-id={get(rest, 'data-test-id', 'journal-logo')} height={height} onClick={onClick} src={src} -- GitLab