fixed expiry check logic

This commit is contained in:
noumantahir 2024-11-06 18:05:15 +05:00
parent df4d5e89b2
commit cd21ff85f8
2 changed files with 2 additions and 2 deletions

View File

@ -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' }),

View File

@ -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' }),