From f6e76d61d8ffd17a8cdb2129cda52d689fda90ec Mon Sep 17 00:00:00 2001 From: Yi-Jyun Pan Date: Mon, 25 Nov 2024 10:28:27 +0800 Subject: [PATCH] fix(challenge): Incorrect title of diff results --- src/Twig/Components/Challenge/Tabs/DiffPresenter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Twig/Components/Challenge/Tabs/DiffPresenter.php b/src/Twig/Components/Challenge/Tabs/DiffPresenter.php index 5d59d1d..9887af1 100644 --- a/src/Twig/Components/Challenge/Tabs/DiffPresenter.php +++ b/src/Twig/Components/Challenge/Tabs/DiffPresenter.php @@ -105,8 +105,8 @@ public function getDiff(): ?string $diff = new Diff(explode("\n", $leftQueryResult), explode("\n", $rightQueryResult)); $renderer = new SideBySide([ - 'title1' => $this->translator->trans('diff.answer'), - 'title2' => $this->translator->trans('diff.yours'), + 'title1' => $this->translator->trans('diff.yours'), + 'title2' => $this->translator->trans('diff.answer'), ]); $result = $diff->render($renderer);