return 0 if no page counter has been set
This commit is contained in:
parent
9dd2708f80
commit
d139a6a052
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ const getWallTotalPages = () =>
|
||||||
.get(Key.NUM_OF_PAGES)
|
.get(Key.NUM_OF_PAGES)
|
||||||
.then(),
|
.then(),
|
||||||
v => typeof v !== 'number'
|
v => typeof v !== 'number'
|
||||||
))
|
)) || 0
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Won't fail if given an invalid page, will return an empty set.
|
* Won't fail if given an invalid page, will return an empty set.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue