Skip to content

Commit

Permalink
Add each cancel error code for each platform (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lin-bbpos authored Oct 22, 2024
1 parent 09bcc39 commit c8da2ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dev-app/src/screens/DiscoverReadersScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -541,5 +541,10 @@ function mapToPlanDisplayName(plan: string) {
}

function shouldShowDiscoverError(error: StripeError) {
return error.code.toString() != 'USER_ERROR.CANCELED';
if (Platform.OS === 'android') {
return error.code.toString() != 'USER_ERROR.CANCELED';
} else if (Platform.OS === 'ios') {
return error.code.toString() != 'Canceled';
}
return true;
}

0 comments on commit c8da2ee

Please sign in to comment.