Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Aug 28, 2024
1 parent c6796fb commit 4bed3da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/website/docs/api/factories/create_barrier.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Configuration fields:
### `createBarrier({ activateOn, perform })`

```ts
import { createBarrier, isHttpError } from '@farfetched/core';
import { createBarrier, isHttpErrorCode } from '@farfetched/core';
import { combine } from 'effector';

const authBarrier = createBarrier({
activateOn: {
failure: isHttpError(401),
failure: isHttpErrorCode(401),
},
perform: [renewTokenMutationFx],
});
Expand Down

0 comments on commit 4bed3da

Please sign in to comment.