mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-22 05:42:33 +03:00
fixed expiry check logic
This commit is contained in:
parent
df4d5e89b2
commit
cd21ff85f8
@ -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' }),
|
||||
|
@ -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' }),
|
||||
|
Loading…
Reference in New Issue
Block a user