Skip to content

Commit b252a06

Browse files
committed
Fix eslint errors in WalletAndCurrencyConstants.ts
1 parent 523df9b commit b252a06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export default [
336336

337337
'src/components/text/TitleText.tsx',
338338
'src/components/themed/Alert.tsx',
339-
'src/components/themed/BuyCrypto.tsx',
339+
340340
'src/components/themed/CreateWalletSelectCryptoRow.tsx',
341341
'src/components/themed/DividerLine.tsx',
342342
'src/components/themed/EdgeProviderComponent.tsx',
@@ -395,7 +395,7 @@ export default [
395395
'src/components/tiles/LtvRatioTile.tsx',
396396
'src/components/tiles/PercentageChangeArrowTile.tsx',
397397
'src/components/tiles/TotalDebtCollateralTile.tsx',
398-
'src/constants/WalletAndCurrencyConstants.ts',
398+
399399
'src/controllers/action-queue/ActionQueueStore.ts',
400400
'src/controllers/action-queue/cleaners.ts',
401401
'src/controllers/action-queue/push.ts',

src/constants/WalletAndCurrencyConstants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ interface SpecialCurrencyInfo {
200200
export const getSpecialCurrencyInfo = (
201201
pluginId: string
202202
): SpecialCurrencyInfo => {
203-
if (SPECIAL_CURRENCY_INFO[pluginId]) {
203+
if (SPECIAL_CURRENCY_INFO[pluginId] !== undefined) {
204204
return SPECIAL_CURRENCY_INFO[pluginId]
205205
} else {
206206
return {
@@ -973,7 +973,7 @@ export const USD_FIAT = 'iso:USD'
973973
/**
974974
* Get the fiat symbol from an iso:[fiat] OR fiat currency code
975975
*/
976-
export const getFiatSymbol = (isoOrFiatCurrencyCode: string) => {
976+
export const getFiatSymbol = (isoOrFiatCurrencyCode: string): string => {
977977
if (typeof isoOrFiatCurrencyCode !== 'string') return ''
978978
const codeWithoutIso = removeIsoPrefix(isoOrFiatCurrencyCode)
979979
const out = FIAT_CODES_SYMBOLS[codeWithoutIso.toUpperCase()]

0 commit comments

Comments
 (0)