feat: render stock logos with signed returns on account page

This commit is contained in:
2026-08-24 23:41:49 +03:00
parent 11be786943
commit a6d3051270
8 changed files with 122 additions and 8 deletions
+11
View File
@@ -45,3 +45,14 @@ export function portfolioErrorCode(error: unknown): string | undefined {
? String(error.code)
: undefined;
}
const logoSize = 160;
export function instrumentLogoUrl(
logoName: string | null | undefined,
): string | null {
const stem = logoName?.trim().replace(/\.png$/i, "");
return stem
? `https://invest-brands.cdn-tinkoff.ru/${stem}x${logoSize}.png`
: null;
}