Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4270d380fb |
@@ -4,7 +4,7 @@ export default {
|
|||||||
app: {
|
app: {
|
||||||
name: 'koins',
|
name: 'koins',
|
||||||
identifier: 'koins.tzgyn.com',
|
identifier: 'koins.tzgyn.com',
|
||||||
version: '0.0.5',
|
version: '0.0.6',
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
// Vite builds to dist/, we copy from there
|
// Vite builds to dist/, we copy from there
|
||||||
|
|||||||
@@ -101,6 +101,11 @@ export const MoneroWallet = () => {
|
|||||||
if (installed && !running) {
|
if (installed && !running) {
|
||||||
await start()
|
await start()
|
||||||
await checkStatus()
|
await checkStatus()
|
||||||
|
} else if (startInFlight) {
|
||||||
|
// a start is already in flight (e.g. triggered by init);
|
||||||
|
// wait for it so we don't call open before the server is up
|
||||||
|
await startInFlight.catch(() => {})
|
||||||
|
await checkStatus()
|
||||||
}
|
}
|
||||||
if (!running) {
|
if (!running) {
|
||||||
error = 'Wallet server failed to start. Please try again.'
|
error = 'Wallet server failed to start. Please try again.'
|
||||||
|
|||||||
@@ -127,20 +127,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Self-heal: if the monero wallet list never got loaded (e.g. the server
|
|
||||||
// was starting while the dashboard rendered), retry login once.
|
|
||||||
$effect(() => {
|
|
||||||
if (
|
|
||||||
moneroWallet.ready &&
|
|
||||||
!moneroWallet.walletOpen &&
|
|
||||||
!moneroWallet.opening &&
|
|
||||||
moneroWallet.wallets.length === 0 &&
|
|
||||||
!moneroWallet.error
|
|
||||||
) {
|
|
||||||
void moneroWallet.login()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
if (moneroWallet.walletOpen) {
|
if (moneroWallet.walletOpen) {
|
||||||
fetchXmr()
|
fetchXmr()
|
||||||
|
|||||||
Reference in New Issue
Block a user