Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fix: react-native runtime incompat…
Browse files Browse the repository at this point in the history
…ibilities
  • Loading branch information
nicklasl committed Oct 3, 2024
1 parent cd263af commit 4d87d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/fetch-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class FetchBuilder {
* @returns the builder itself
*/
route(match: (url: string) => boolean, fetch: SimpleFetch) {
return this.compose(next => request => (match(request.url) ? fetch(request) : next(request)));
return this.compose(next => request => match(request.url) ? fetch(request) : next(request));
}

/**
Expand Down

0 comments on commit 4d87d3a

Please sign in to comment.