fix: latest signals pass symbol without USDT suffix to signal-history API

This commit is contained in:
root 2026-02-28 13:31:14 +00:00
parent 71192d4209
commit 404cc683e0

View File

@ -118,7 +118,7 @@ function LatestSignals() {
const f = async () => { const f = async () => {
for (const sym of COINS) { for (const sym of COINS) {
try { 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) { if (r.ok) {
const j = await r.json(); const j = await r.json();
if (j.data && j.data.length > 0) { if (j.data && j.data.length > 0) {