4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

Fix expiry date for invites

This commit is contained in:
AlphaX-Qortal 2025-01-29 18:26:42 +01:00
parent 800884302d
commit f3874fdc72
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ class LogoutView extends connect(store)(LitElement) {
} }
async confirm(e) { async confirm(e) {
localStorage.removeItem("symKeysCurrent")
store.dispatch(doLogout()) store.dispatch(doLogout())
e.stopPropagation() e.stopPropagation()
} }

View File

@ -801,7 +801,7 @@ class GroupManagement extends LitElement {
const currentTime = Date.now() const currentTime = Date.now()
this.myOpenInvites.forEach(a => { this.myOpenInvites.forEach(a => {
let expiry = a.timestamp + a.timeToLive let expiry = a.timestamp + (a.timeToLive * 1000)
if (expiry > currentTime || a.timeToLive === 0) { if (expiry > currentTime || a.timeToLive === 0) {
let invitedGroupInfoUrl = `${nodeUrl}/groups/${a.groupId}` let invitedGroupInfoUrl = `${nodeUrl}/groups/${a.groupId}`