Finely chop the onion and garlic and lightly fry in olive oil. At the chard, cut out the thick trunks and cut it into strips, then add it to the onion. Cut the tomato and also add to the onion. In parallel, drain the potatoes and fry them in another pan. Pour the spices into the potatoes. After about 10 minutes, add the potatoes to the vegetables.