Skip to content

Commit

Permalink
Merge pull request #4836 from Giveth/fix/solana_input_placeholder
Browse files Browse the repository at this point in the history
Fixing solana network address placeholder
  • Loading branch information
kkatusic authored Oct 15, 2024
2 parents a16ed57 + becf394 commit 66e0051
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 66e0051

Please sign in to comment.