Answer:
Both are correct.
Step-by-step explanation:
The grammatical error refers to an error about the grammar, be it the tenses used, spelling, punctuation, etc. This is one of the most important parts of grammar and helps write good and easy-to-read sentences for everyone's understanding.
In the given two sentences, there are no errors either in the grammar of the spellings used.
Thus, the correct answer is that both of them are correct.