fix: latest signals pass symbol without USDT suffix to signal-history API
This commit is contained in:
parent
71192d4209
commit
404cc683e0
@ -118,7 +118,7 @@ function LatestSignals() {
|
||||
const f = async () => {
|
||||
for (const sym of COINS) {
|
||||
try {
|
||||
const r = await authFetch(`/api/signals/signal-history?symbol=${sym}&limit=1`);
|
||||
const r = await authFetch(`/api/signals/signal-history?symbol=${sym.replace("USDT","")}&limit=1`);
|
||||
if (r.ok) {
|
||||
const j = await r.json();
|
||||
if (j.data && j.data.length > 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user