aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-02 16:18:38 -0700
committerAdam Soltys <[email protected]>2026-08-02 16:18:38 -0700
commit6308a2669388db05943f234b260f7d93f760f9a0 (patch)
tree303955e07c2a3e6b7e619550067ed60ee4e0637e /src/api.js
parent5a444e260b0b6aa36953b22678e9b98448cd28f0 (diff)
downloadcoinosv3-6308a2669388db05943f234b260f7d93f760f9a0.tar.gz
coinosv3-6308a2669388db05943f234b260f7d93f760f9a0.zip
Settings: surface wallet settings, add Nostr section, tuck rarities into Advanced
The main Settings tab now inlines the active wallet's own cards (recovery phrase, name, public key) instead of linking to a sub-page, followed by payment address, Ark status, network, and data source. All nostr cards — address, account link, wallet connect, device sync — sit under one Nostr heading via a new nostrSettingsCards seam. Offline transfer, address rescan, and auto-logout move to an Advanced sub-page. The Ark provider picker is gone: mainnet always rides coinos (a stale stored choice no longer wins); dev networks keep their per-network defaults. The per-account screen (Accounts → ⚙) reuses the same card builders unchanged. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'src/api.js')
-rw-r--r--src/api.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api.js b/src/api.js
index 5824120..42e953a 100644
--- a/src/api.js
+++ b/src/api.js
@@ -248,6 +248,10 @@ export function arkPresets(net = getNetwork()) {
return ARK_PRESETS_BY_NET[net] || ARK_PRESETS_BY_NET.mainnet;
}
export function getArkProviderId(net = getNetwork()) {
+ // Mainnet always rides coinos — the provider picker was removed from
+ // Settings, so a stale stored choice must not silently win. Dev networks
+ // still honor a stored id (regtest/mutinynet testing needs it).
+ if (net === 'mainnet') return 'coinos';
try {
const id = localStorage.getItem(nk(ARK_PROVIDER_KEY, net));
if (id && arkPresets(net).some((p) => p.id === id)) return id;