Skip to content

Commit

Permalink
fix: update message wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Jan 21, 2025
1 parent 4b6181f commit 8abde7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shared/components/token-to-wallet/token-to-wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export const TokenToWallet: TokenToWalletComponent = ({ address, ...rest }) => {
if (!walletClient || !address) return null;

const onClickHandler = async () => {
if (!address) return;

try {
const tokenContract = getContract({
abi: ERC20_METADATA_ABI,
Expand All @@ -51,9 +49,11 @@ export const TokenToWallet: TokenToWalletComponent = ({ address, ...rest }) => {
});

if (result) {
ToastInfo('Tokens were successfully added to your wallet', {});
ToastInfo(`${symbol} token was successfully added to your wallet`);
} else {
ToastInfo('User rejected the request');
ToastInfo(
`Request to watch ${symbol} token was rejected by your wallet`,
);
}
} catch (error) {
// Associating error code to UI messages
Expand Down

0 comments on commit 8abde7c

Please sign in to comment.