فهرست منبع

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]] || ''
     }
   }