From cd21ff85f870f5fa14839a335d197f8030dfbc29 Mon Sep 17 00:00:00 2001 From: noumantahir Date: Wed, 6 Nov 2024 18:05:15 +0500 Subject: [PATCH] fixed expiry check logic --- .../container/accountsBottomSheetContainer.tsx | 2 +- src/screens/application/container/applicationContainer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/accountsBottomSheet/container/accountsBottomSheetContainer.tsx b/src/components/accountsBottomSheet/container/accountsBottomSheetContainer.tsx index 9933b359c..9783a24c0 100644 --- a/src/components/accountsBottomSheet/container/accountsBottomSheetContainer.tsx +++ b/src/components/accountsBottomSheet/container/accountsBottomSheetContainer.tsx @@ -89,7 +89,7 @@ const AccountsBottomSheetContainer = () => { if (authData?.username) { const curTime = new Date().getTime(); - if (curTime < authData.hiveAuthExpiry) { + if (curTime > authData.hiveAuthExpiry) { dispatch( showActionModal({ title: intl.formatMessage({ id: 'alert.warning' }), body: intl.formatMessage({ id: 'alert.auth_expired' }), diff --git a/src/screens/application/container/applicationContainer.tsx b/src/screens/application/container/applicationContainer.tsx index 2dddb3326..d75119cd9 100644 --- a/src/screens/application/container/applicationContainer.tsx +++ b/src/screens/application/container/applicationContainer.tsx @@ -379,7 +379,7 @@ class ApplicationContainer extends Component { if (authData?.username) { const curTime = new Date().getTime(); - if (curTime < authData.hiveAuthExpiry) { + if (curTime > authData.hiveAuthExpiry) { dispatch(showActionModal({ title: intl.formatMessage({ id: 'alert.warning' }), body: intl.formatMessage({ id: 'alert.auth_expired' }),