mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed empty title error
This commit is contained in:
parent
eade3efc7c
commit
8ad5576983
2 changed files with 5 additions and 2 deletions
|
@ -11,7 +11,9 @@ type IProps = RouteComponentProps & {
|
|||
};
|
||||
|
||||
const getTitleLetters = (title: string): string => {
|
||||
const words = title.split(' ');
|
||||
const words = (title && title.split(' ')) || [];
|
||||
|
||||
if (!words.length) return '';
|
||||
|
||||
return words.length > 1
|
||||
? words
|
||||
|
|
|
@ -40,5 +40,6 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
font: $font_24_semibold;
|
||||
opacity: 0.2;
|
||||
// opacity: 0.2;
|
||||
color: #444444;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue