Skip to content

Commit

Permalink
fix: add default runes symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf committed Apr 18, 2024
1 parent 75085e8 commit b3109ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/query/bitcoin/runes/runes.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b3109ed

Please sign in to comment.