From efd294dcef620a96a47d30730198f74d781f58e7 Mon Sep 17 00:00:00 2001
From: Matiss Janis Aboltins <matiss@mja.lv>
Date: Sun, 28 Jul 2024 14:57:24 +0100
Subject: [PATCH] :bug: fix plain-text link in simplefin error (#3151)

---
 .../src/components/accounts/AccountSyncCheck.jsx       | 10 +++++++++-
 .../src/components/modals/SimpleFinInitialise.tsx      |  2 +-
 upcoming-release-notes/3151.md                         |  6 ++++++
 3 files changed, 16 insertions(+), 2 deletions(-)
 create mode 100644 upcoming-release-notes/3151.md

diff --git a/packages/desktop-client/src/components/accounts/AccountSyncCheck.jsx b/packages/desktop-client/src/components/accounts/AccountSyncCheck.jsx
index 9894ae6ea..046f047eb 100644
--- a/packages/desktop-client/src/components/accounts/AccountSyncCheck.jsx
+++ b/packages/desktop-client/src/components/accounts/AccountSyncCheck.jsx
@@ -39,7 +39,15 @@ function getErrorMessage(type, code) {
       return 'Your SimpleFIN Access Token is no longer valid. Please reset and generate a new token.';
 
     case 'ACCOUNT_NEEDS_ATTENTION':
-      return 'The account needs your attention at [SimpleFIN](https://beta-bridge.simplefin.org/auth/login).';
+      return (
+        <>
+          The account needs your attention at{' '}
+          <Link variant="external" to="https://bridge.simplefin.org/auth/login">
+            SimpleFIN
+          </Link>
+          .
+        </>
+      );
 
     default:
   }
diff --git a/packages/desktop-client/src/components/modals/SimpleFinInitialise.tsx b/packages/desktop-client/src/components/modals/SimpleFinInitialise.tsx
index 1392d38cc..2e5c356e2 100644
--- a/packages/desktop-client/src/components/modals/SimpleFinInitialise.tsx
+++ b/packages/desktop-client/src/components/modals/SimpleFinInitialise.tsx
@@ -60,7 +60,7 @@ export const SimpleFinInitialise = ({
               by creating an account with{' '}
               <Link
                 variant="external"
-                to="https://beta-bridge.simplefin.org/"
+                to="https://bridge.simplefin.org/"
                 linkColor="purple"
               >
                 SimpleFIN
diff --git a/upcoming-release-notes/3151.md b/upcoming-release-notes/3151.md
new file mode 100644
index 000000000..cf03e4b0c
--- /dev/null
+++ b/upcoming-release-notes/3151.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MatissJanis]
+---
+
+Fix plain-text SimpleFin link in error message.
-- 
GitLab