pay flow: initial commit
This commit is contained in:
@@ -31,9 +31,7 @@ export const branchApi = baseApi.injectEndpoints({
|
||||
},
|
||||
}),
|
||||
transformResponse: (response: any) => {
|
||||
return response?.result?.restaurants?.find(
|
||||
(restaurant: RestaurantDetails) => restaurant.distance === 595,
|
||||
);
|
||||
return response?.result?.restaurants?.[0]
|
||||
},
|
||||
providesTags: ["Restaurant"],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user