From b3109edabe011e5db62edf25c879fe6b4f9ae1af Mon Sep 17 00:00:00 2001 From: Fara Woolf Date: Thu, 18 Apr 2024 09:57:32 -0500 Subject: [PATCH] fix: add default runes symbol --- src/app/query/bitcoin/runes/runes.hooks.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/query/bitcoin/runes/runes.hooks.ts b/src/app/query/bitcoin/runes/runes.hooks.ts index e734a57ef31..1ea8030e261 100644 --- a/src/app/query/bitcoin/runes/runes.hooks.ts +++ b/src/app/query/bitcoin/runes/runes.hooks.ts @@ -10,10 +10,13 @@ import { useGetRunesOutputsByAddressQuery } from './runes-outputs-by-address.que import { useGetRunesTickerInfoQuery } from './runes-ticker-info.query'; import { useGetRunesWalletBalancesByAddressesQuery } from './runes-wallet-balances.query'; +const defaultRunesSymbol = 'ยค'; + function makeRuneToken(runeBalance: RuneBalance, tickerInfo: RuneTickerInfo): RuneToken { return { ...runeBalance, ...tickerInfo, + symbol: tickerInfo.symbol ?? defaultRunesSymbol, balance: createMoney( Number(runeBalance.total_balance), tickerInfo.rune_name,