mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-27 23:46:34 +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) => {
|
||||
console.log(res);
|
||||
const lastId = res.length > 0 ? [...res].pop().id : null;
|
||||
if (lastId === lastNotificationId || res.length === 0) {
|
||||
|
||||
if (loadMore && (lastId === lastNotificationId || res.length === 0)) {
|
||||
this.setState({
|
||||
endOfNotification: true,
|
||||
isNotificationRefreshing: false,
|
||||
|
Loading…
Reference in New Issue
Block a user