Skip to content

Commit

Permalink
Merge pull request #214 from plaid/iOS/removeStatusInSuccessObject
Browse files Browse the repository at this point in the history
iOS: Remove "status" object in onSuccess object
  • Loading branch information
amytang0 authored Oct 7, 2020
2 parents 05012bd + e48099d commit f739f39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PlaidLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ export const openLink = async ({ onExit, onSuccess, ...serializable }) => {
switch (metadata.status) {
case 'connected':
if (onSuccess != null) {
metadata["status"] = undefined;
delete metadata.status;
onSuccess(metadata);
}
break;
default:
if (onExit != null) {
delete metadata.status;
onExit(metadata);
}
break;
Expand Down

0 comments on commit f739f39

Please sign in to comment.