Skip to content

Commit

Permalink
Fixing solana network address placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
kkatusic committed Oct 9, 2024
1 parent 19a91df commit becf394
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const AddNewAddress: FC<IAddNewAddress> = ({
'chainType' in selectedChain ? selectedChain.chainType : undefined;

const isStellarChain = chainType === ChainType.STELLAR;
const isSolanaChain = chainType === ChainType.SOLANA;

const handleAdd = async (formData: IAddressForm) => {
setLoading(true);
Expand Down Expand Up @@ -137,7 +138,13 @@ export const AddNewAddress: FC<IAddNewAddress> = ({
...requiredOptions?.walletAddress,
validate: validateAddress,
}}
placeholder={isStellarChain ? 'G...' : '0x...'}
placeholder={
isStellarChain
? 'G...'
: isSolanaChain
? 'xxxx...xxxx'
: '0x...'
}
defaultValue={suggestNewAddress(
project.addresses!,
selectedChain,
Expand Down

0 comments on commit becf394

Please sign in to comment.