File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ async function card(data: GetData, uiConfig: UiConfig): Promise<string> {
39
39
const isDisabledAnimations = parseBoolean ( uiConfig . disabledAnimations || uiConfig . Format === "png" ) ;
40
40
41
41
let titleCard = defaultLocale . titleCard . split ( "{name}" ) . join ( data . name ) ;
42
- if ( uiConfig . Title ||
43
- uiConfig . Title . length ||
44
- uiConfig . Title !== "undefined" ||
42
+ if ( uiConfig . Title &&
43
+ uiConfig . Title . length &&
44
+ uiConfig . Title !== "undefined" &&
45
45
uiConfig . Title !== "" ) {
46
46
titleCard = uiConfig . Title . split ( "{name}" ) . join ( data . name ) ;
47
- } else if ( selectLocale . titleCard ||
48
- selectLocale . titleCard . length ||
49
- selectLocale . titleCard !== "undefined" ||
47
+ } else if ( selectLocale . titleCard &&
48
+ selectLocale . titleCard . length &&
49
+ selectLocale . titleCard !== "undefined" &&
50
50
selectLocale . titleCard !== "" ) {
51
51
titleCard = selectLocale . titleCard . split ( "{name}" ) . join ( data . name ) ;
52
52
}
You can’t perform that action at this time.
0 commit comments