Heat the olive oil in a pan and add the chopped onion.
Add in the thinly sliced potatoes as well.
Cook until the potatoes are fork tender and the onions are golden.
Whisk the eggs in a large bowl.
Add in the potatoes and onions. Season with salt and pepper.
Transfer the batter to a pan and cook over medium heat until the bottom is set.
Flip and cook on the other side for a few minutes as well.