Skip to content

Commit

Permalink
Remove reference to lodash (#1524)
Browse files Browse the repository at this point in the history
* Remove reference to lodash

* Update review.yml
  • Loading branch information
nukeop authored Nov 6, 2023
1 parent 930b870 commit 0560564
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ jobs:
with:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
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 0560564

Please sign in to comment.