We can see the changes of the account name and address in the left
sidebar.
Account name: {walletConnected?.name}
Account name: {walletConnected?.address}
walletInfo: {JSON.stringify(walletInfo)}
>
);
};
/**
* @description
* If we do not format the data, we will get the error follow.
* RTK: A non-serializable value was detected in an action;
* @param walletInfo
*/
function formatWalletInfo(walletInfo: TWalletInfo) {
return {
name: walletInfo?.name || '-',
address: walletInfo?.address || '-',
};
}