Merge pull request #2025 from ecency/nt/bug-fixes

Nt/bug fixes
This commit is contained in:
Feruz M 2021-08-06 18:10:19 +03:00 committed by GitHub
commit e65368bcae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ class NotificationView extends PureComponent {
_notifications && _notifications.length > 0 ? (
<SectionList
sections={_notifications}
keyExtractor={(item, index) => item.title + index}
keyExtractor={(item, index) => `${item.id}-${index}`}
onEndReached={() => getActivities(selectedFilter, true)}
ListFooterComponent={this._renderFooterLoading}
ListEmptyComponent={<ListPlaceHolder />}

View File

@ -314,7 +314,7 @@ export const getLastUpdateCheck = async (lastUpdateCheck) => {
try {
const setting = await getItemFromStorage(SETTINGS_SCHEMA);
if (setting) {
return setting.lastUpdateCheck - 48 * 3600 * 1000;
return setting.lastUpdateCheck;
}
return false;
} catch (error) {