mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-23 19:37:52 +00:00
Added comment to get started and make draft PR
This commit is contained in:
parent
40986aeb29
commit
d15d6dbf95
@ -118,7 +118,8 @@ async function getBalanceInfo() {
|
|||||||
const address = wallet.address0;
|
const address = wallet.address0;
|
||||||
const validApi = await findUsableApi();
|
const validApi = await findUsableApi();
|
||||||
const response = await fetch(validApi + "/addresses/balance/" + address);
|
const response = await fetch(validApi + "/addresses/balance/" + address);
|
||||||
|
// Start Point: ideas - decide on what level to fix this problem: api, background.ts, or on the UI.
|
||||||
|
// https://github.com/Qortal/chrome-extension/issues/7
|
||||||
if (!response?.ok) throw new Error("Cannot fetch balance");
|
if (!response?.ok) throw new Error("Cannot fetch balance");
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
return data;
|
return data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user