Skip to content

Commit

Permalink
Remove reference to lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop authored Nov 6, 2023
1 parent 930b870 commit 858f6fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/app/app/components/LyricsView/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import _ from 'lodash';
import { Icon } from 'semantic-ui-react';
import { useTranslation } from 'react-i18next';

Expand All @@ -21,7 +20,7 @@ export const LyricsView: React.FC<LyricsViewProps> = ({
track
}) => {
const { t } = useTranslation('lyrics');
let lyricsStr = _.get(lyricsSearchResults, 'type', '');
let lyricsStr = lyricsSearchResults?.type ?? '';
if (lyricsStr === '') {
lyricsStr = t('not-found');
}
Expand Down

0 comments on commit 858f6fe

Please sign in to comment.