Skip to content

Commit ca2cb51

Browse files
author
jagdeep sidhu
committed
Bug: Currency Label Displays Raw Code
The network card's currency label displays a literal string $(currentNetwork.currency || 'sys').toUpperCase() • instead of the evaluated currency code. This occurs because the expression was incorrectly placed outside JSX interpolation braces, causing the $ and ( characters to be rendered literally as part of the string.
1 parent beab8ca commit ca2cb51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/pages/Settings/CustomRPC.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,8 @@ const CustomRPCView = () => {
10031003
</span>
10041004
</div>
10051005
<div className="text-sm text-gray-700 mt-1 font-medium group-hover:text-gray-900 transition-colors duration-200">
1006-
${(currentNetwork.currency || 'sys').toUpperCase()}{' '}
1006+
{'$'}
1007+
{(currentNetwork.currency || 'sys').toUpperCase()}{' '}
10071008
{currentNetwork.kind === INetworkType.Syscoin || isSyscoinRpc
10081009
? 'UTXO Network'
10091010
: 'EVM Network'}

0 commit comments

Comments
 (0)