소스 검색

Update instruments.ts

lex-xin 4 달 전
부모
커밋
a4148d6a86
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/constant/instruments.ts

+ 1 - 1
src/constant/instruments.ts

@@ -225,7 +225,7 @@ export const getInstrumentName = (instruments: any, instrumentName: string) => {
   }
   for (let i = 0; i < _instrument.length; i++) {
     const _name = _instrument[i].replace(/ /g, '').toLocaleLowerCase()
-    if (_name.includes(_instrumentName)) {
+    if (_instrumentName.includes(_name)) {
       return instruments[_instrument[i]] || ''
     }
   }