as I made the snippet call from the page the call is happened and retrieved the current user,when coming to UI it is displaying with the whit space too.how to remove that white space as to show the name itself on the UI. and I am getting this error while calling the snippet from the Atlas Default layout.
There are two ways to solve this:
Use a text widget to display the name.
If you don’t want to use text widget then you can change the read only style to Text instead of Control.