🐛 (nordigen) expired bank-links (#1133)

Further Nordigen fixes for expired bank-links. With the recent changes
to the router, we had broken this functionality.

<img width="488" alt="Screenshot 2023-06-14 at 09 00 21"
src="https://github.com/actualbudget/actual/assets/886567/8e7516e0-121a-46e0-9e52-24748b161173">
<img width="437" alt="Screenshot 2023-06-14 at 09 00 30"
src="https://github.com/actualbudget/actual/assets/886567/88b36549-1073-4269-b42f-1553c164316f">
This commit is contained in:
Matiss Janis Aboltins
2023-06-14 18:13:57 +01:00
committed by GitHub
parent 4f5fd6c463
commit 05754d3e42
3 changed files with 9 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import { connect } from 'react-redux';
import { useParams } from 'react-router-dom';
import * as actions from 'loot-core/src/client/actions';
@@ -50,17 +51,12 @@ function getErrorMessage(type, code) {
}
function AccountSyncCheck({
id,
accounts,
failedAccounts,
syncAndDownload,
markAccountSuccess,
unlinkAccount,
pushModal,
closeModal,
getAccounts,
addNotification,
}) {
let { id } = useParams();
let [open, setOpen] = useState(false);
if (!failedAccounts) {
return null;

View File

@@ -7,7 +7,7 @@ import useSyncServerStatus from './useSyncServerStatus';
export default function useNordigenStatus() {
const [configured, setConfigured] = useState<boolean | null>(null);
const [isLoading, setIsLoading] = useState(false);
const [status] = useSyncServerStatus();
const status = useSyncServerStatus();
useEffect(() => {
async function fetch() {

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [MatissJanis]
---
Nordigen: fix bank-sync expiry functionality