From effbcc22ea2e48d7b84657dc4139f1d4b73ef47b Mon Sep 17 00:00:00 2001 From: devtealeaf Date: Sat, 6 Jul 2024 01:13:40 +0300 Subject: [PATCH] fix: strategy shortNames --- src/utils/functions/getStrategyInfo.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/functions/getStrategyInfo.ts b/src/utils/functions/getStrategyInfo.ts index 777c053a..272bef9a 100644 --- a/src/utils/functions/getStrategyInfo.ts +++ b/src/utils/functions/getStrategyInfo.ts @@ -205,7 +205,7 @@ export const getStrategyInfo = (vaultSymbol: string): IStrategyInfo => { ? IL.GQFN : vaultSymbol.match(/GQMFW$/) ? IL.GQFW - : { rate: 0, title: "None", desc: "None", color: "#000000" }; + : { rate: 0, title: "None", desc: "None", color: "#4aff71" }; strategyInfo = { name: strategies.GQMF?.id as string, @@ -219,7 +219,7 @@ export const getStrategyInfo = (vaultSymbol: string): IStrategyInfo => { il: il, sourceCode: "", }; - } else if (vaultSymbol.match(/IRMF\d+$/)) { + } else if (vaultSymbol.match(/\bIRMF\b/)) { strategyInfo = { name: strategies.IRMF?.id as string, shortName: strategies.IRMF?.shortId as string, @@ -232,7 +232,7 @@ export const getStrategyInfo = (vaultSymbol: string): IStrategyInfo => { sourceCode: "", il: IL.IQMF, }; - } else if (vaultSymbol.match(/GRMF(S|N|W)$/)) { + } else if (vaultSymbol.match(/GRMF(S|N|W)?$/)) { const il = vaultSymbol.match(/GRMFS$/) ? IL.GQFS : vaultSymbol.match(/GRMFN$/)