Skip to content

Commit

Permalink
Merge pull request #60 from Arias800/patch-1
Browse files Browse the repository at this point in the history
Fix white screen if the manga doesn't have genre.
  • Loading branch information
AriaMoradi authored Apr 13, 2021
2 parents 93fd81b + b884d34 commit c1be77e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webUI/react/src/components/MangaDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ export default function MangaDetails(props: IProps) {
const { setAction } = useContext(NavbarContext);

const { manga } = props;
if (manga.genre == null) {
manga.genre = '';
}
const [inLibrary, setInLibrary] = useState<string>(
manga.inLibrary ? 'In Library' : 'Add To Library',
);
Expand Down

0 comments on commit c1be77e

Please sign in to comment.