From d15d6dbf950582bc0ade37e49d5b6867a02002b9 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 10 Jul 2024 11:31:48 -0400 Subject: [PATCH] Added comment to get started and make draft PR --- src/background.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/background.ts b/src/background.ts index f523d0e..e8bb68d 100644 --- a/src/background.ts +++ b/src/background.ts @@ -118,7 +118,8 @@ async function getBalanceInfo() { const address = wallet.address0; const validApi = await findUsableApi(); 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"); const data = await response.json(); return data;