Skip to content

Commit

Permalink
Merge pull request #16778 from Expensify/francois-fixDeployBlocker167…
Browse files Browse the repository at this point in the history
…61Hook

Fix propsRef initialization in native PlaidLink component
  • Loading branch information
luacmartins authored Mar 31, 2023
2 parents 2398744 + b402b28 commit 74a7888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PlaidLink/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {plaidLinkPropTypes, plaidLinkDefaultProps} from './plaidLinkPropTypes';
const PlaidLink = (props) => {
// We are stashing initial props in a ref since we don't want a new token to trigger the link to open again
// and just want openLink() to be called once
const propsRef = useRef(props.token);
const propsRef = useRef(props);
useDeepLinkRedirector();
usePlaidEmitter((event) => {
Log.info('[PlaidLink] Handled Plaid Event: ', false, event);
Expand Down

0 comments on commit 74a7888

Please sign in to comment.