Was this racist right to get fired?

She told my friend to go back to her home country twice. Since my friend is non-white and has indigenous latina features, she got told that.

The shocked on that lady's face happened when my friend said ''I am in my home country, I was born in FL'' and showed her ID. The lady got reported and she tried apologizing but got fired afterwards.
Updates
+1 y
That lady apparently thought every native born US citizens are white, nor realizing many immigrants have children here too, not realizing US is a melting pot.
Was this racist right to get fired?
Post Opinion