From 7489ee5e7940383e8b5124964c4fa622c8d3bbcf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dominik=20Franti=C5=A1ek=20Bu=C4=8D=C3=ADk?=
 <bucik@ics.muni.cz>
Date: Thu, 15 Dec 2022 18:08:37 +0100
Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20typos=20and=20unfin?=
 =?UTF-8?q?ished=20logic=20in=20consent=20jurisdiction?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/ConsentHelper.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lib/ConsentHelper.php b/lib/ConsentHelper.php
index 5e7164c..e241c3a 100644
--- a/lib/ConsentHelper.php
+++ b/lib/ConsentHelper.php
@@ -120,12 +120,15 @@ class ConsentHelper
     {
         if (!empty($parsedJurisdiction)) {
             echo '<div class="alert alert-danger" role="alert">' . PHP_EOL;
-            if ($parsedJurisdiction === 'INT' || $parsedJurisdiction === 'EMBL') {
+            if (
+                $parsedJurisdiction === self::JURISDICTION_EMBL
+                || $parsedJurisdiction === self::JURISDICTION_INTERNATIONAL_ORG
+            ) {
                 echo '    <h6>This service is provided by an international organization.</h6>' . PHP_EOL;
             } else {
-                echo '    <h6>This service is ' . $parsedJurisdiction . '</h6>' . PHP_EOL;
+                echo '    <h6>This service is in ' . $parsedJurisdiction . '</h6>' . PHP_EOL;
             }
-            if ($parsedJurisdiction === 'EMBL') {
+            if ($parsedJurisdiction === self::JURISDICTION_EMBL) {
                 echo '    <p>In order to access the requested services, the Life Science Login needs to transfer ' .
                     'your personal data to an international organization outside EU/EEA jurisdictions.<br/>' .
                     '<i>Please be aware that upon transfer your personal data will be protected by <a href="' .
-- 
GitLab