mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 11:21:41 +03:00
fixed notification data getting ignore after refresh
This commit is contained in:
parent
dac6ac9b7f
commit
ba1d026afe
@ -47,7 +47,8 @@ class NotificationContainer extends Component {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
const lastId = res.length > 0 ? [...res].pop().id : null;
|
const lastId = res.length > 0 ? [...res].pop().id : null;
|
||||||
if (lastId === lastNotificationId || res.length === 0) {
|
|
||||||
|
if (loadMore && (lastId === lastNotificationId || res.length === 0)) {
|
||||||
this.setState({
|
this.setState({
|
||||||
endOfNotification: true,
|
endOfNotification: true,
|
||||||
isNotificationRefreshing: false,
|
isNotificationRefreshing: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user