File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export type RootStackParamList = {
103103 Cart : undefined ;
104104 CartModal : undefined ;
105105 Settings : undefined ;
106- BuyNow : { url : string ; auth : string } ;
106+ BuyNow : { url : string ; auth ? : string } ;
107107} ;
108108
109109const Tab = createBottomTabNavigator < RootStackParamList > ( ) ;
Original file line number Diff line number Diff line change @@ -57,9 +57,6 @@ export function BuyNowButton({
5757
5858 try {
5959 const auth = await fetchToken ( ) ;
60- if ( ! auth ) {
61- throw new Error ( 'Authentication required for this sample app' ) ;
62- }
6360
6461 let checkoutUrl : string ;
6562
Original file line number Diff line number Diff line change 11export type BuyNowStackParamList = {
2- Checkout : { url : string , auth : string } ;
2+ Checkout : { url : string , auth ? : string } ;
33 Address : { id : string } ;
44 Payment : { id : string } ;
55} ;
You can’t perform that action at this time.
0 commit comments