Message max to 5 seconds

This commit is contained in:
AlphaX-Projects 2022-03-03 17:03:57 +01:00 committed by GitHub
parent f3a9150034
commit 5304d625ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,6 +270,14 @@ class SendMoneyPage extends LitElement {
// Get DOGE Balance // Get DOGE Balance
this.updateDOGEAccountBalance() this.updateDOGEAccountBalance()
setInterval(() => {
this.errorMessage = '';
}, 5000)
setInterval(() => {
this.successMessage = '';
}, 5000)
window.addEventListener('contextmenu', (event) => { window.addEventListener('contextmenu', (event) => {
event.preventDefault() event.preventDefault()
this._textMenu(event) this._textMenu(event)
@ -561,7 +569,6 @@ class SendMoneyPage extends LitElement {
throw new Error(txnResponse) throw new Error(txnResponse)
} }
} }
validateReceiver(recipient) validateReceiver(recipient)
} }