mirror of
https://github.com/romancm/gamebrary
synced 2024-11-14 23:47:08 +00:00
improve ternary evaluation
This commit is contained in:
parent
b7b64f5109
commit
8632fe3c77
1 changed files with 3 additions and 1 deletions
|
@ -97,7 +97,9 @@ export default {
|
|||
getWallpaper({ wallpaper }) {
|
||||
const boardWallpaper = this.wallpapers.find(({ fullPath }) => fullPath === wallpaper);
|
||||
|
||||
return this.wallpapers.length && boardWallpaper && boardWallpaper.url;
|
||||
return this.wallpapers.length > 0 && boardWallpaper && boardWallpaper.url
|
||||
? boardWallpaper.url
|
||||
: null;
|
||||
},
|
||||
|
||||
getPlatformImage(id) {
|
||||
|
|
Loading…
Reference in a new issue