diff --git a/package-lock.json b/package-lock.json
index b232d36e570e..9ca92149c2ba 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36611,12 +36611,12 @@
}
},
"react-plaid-link": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/react-plaid-link/-/react-plaid-link-3.1.0.tgz",
- "integrity": "sha512-jTbThGcka3YjpKntGquzmfMXpEhENdbpiGJ97W33McPcqAosdOUCdbBJmm2Ih6hE56exTrISxzpdhOpLD4/emA==",
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/react-plaid-link/-/react-plaid-link-3.2.1.tgz",
+ "integrity": "sha512-GJoqnt28L+JD6Tc62e56Pyfy/RP4CF8b05blvZTFmBxqaPXMsP8a7S/J0wnGVSyN+gAeinSBUa5GPr/dgNHMyw==",
"requires": {
"prop-types": "^15.7.2",
- "react-script-hook": "1.1.0"
+ "react-script-hook": "1.3.0"
}
},
"react-popper": {
@@ -36657,9 +36657,9 @@
"integrity": "sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA=="
},
"react-script-hook": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/react-script-hook/-/react-script-hook-1.1.0.tgz",
- "integrity": "sha512-swEdGFIOgG4lfi1gdYzFNV28uKuowzbgEGb8Lwi/yp696BVa6RvvuW4a7FY9mic+SecojVlHMWcllygmAg6EJg=="
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/react-script-hook/-/react-script-hook-1.3.0.tgz",
+ "integrity": "sha512-VlAyqXywHJHpbJgWoWFWSavXumGAyfW2RD4Jd8DyV/G1n5ufngiaUlCHVvmglvJnysfAYzovcjjkEhSVzcVpuQ=="
},
"react-sizeme": {
"version": "3.0.1",
diff --git a/package.json b/package.json
index 1a6be12f7f35..9c15339a4ac2 100644
--- a/package.json
+++ b/package.json
@@ -98,7 +98,7 @@
"react-native-unimodules": "^0.13.3",
"react-native-web": "0.15.7",
"react-pdf": "^5.2.0",
- "react-plaid-link": "^3.1.0",
+ "react-plaid-link": "^3.2.0",
"react-web-config": "^1.0.0",
"rn-fetch-blob": "^0.12.0",
"save": "^2.4.0",
diff --git a/src/components/AddPlaidBankAccount.js b/src/components/AddPlaidBankAccount.js
index f1b6cf200756..587671e51179 100644
--- a/src/components/AddPlaidBankAccount.js
+++ b/src/components/AddPlaidBankAccount.js
@@ -132,10 +132,11 @@ class AddPlaidBankAccount extends React.Component {
)}
- {!_.isEmpty(this.props.plaidLinkToken) && _.isEmpty(this.state.institution) && (
+ {!_.isEmpty(this.props.plaidLinkToken) && (
{
+ console.debug('[PlaidLink] Success: ', {publicToken, metadata});
getPlaidBankAccounts(publicToken, metadata.institution.name);
this.setState({institution: metadata.institution});
}}
diff --git a/src/components/PlaidLink/index.js b/src/components/PlaidLink/index.js
index 876ef7c32c26..f753dca57d5c 100644
--- a/src/components/PlaidLink/index.js
+++ b/src/components/PlaidLink/index.js
@@ -10,7 +10,13 @@ const PlaidLink = (props) => {
const {open, ready, error} = usePlaidLink({
token: props.token,
onSuccess,
- onExit: props.onExit,
+ onExit: (exitError, metadata) => {
+ console.debug('[PlaidLink] Exit: ', {exitError, metadata});
+ props.onExit();
+ },
+ onEvent: (event, metadata) => {
+ console.debug('[PlaidLink] Event: ', {event, metadata});
+ },
});
useEffect(() => {