Skip to content

Commit

Permalink
docs: two modes
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Oct 17, 2024
1 parent 1ef7166 commit 99154e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export const getServerSideProps: GetServerSideProps<Data> = async () => {
const { toggles } = evaluateFlags(definitions, context);
let client = flagsClient(toggles);

const enabled = client.isEnabled("example-flag");
const enabled = client.isEnabled("nextjs-example");

await client.sendMetrics();

Expand Down Expand Up @@ -342,7 +342,7 @@ export default async function Page() {
const enabled = client.isEnabled('nextjs-example');

return <>
Flag status: {isEnabled ? "ENABLED" : "DISABLED"}
Flag status: {enabled ? "ENABLED" : "DISABLED"}
</>
}
```
Expand Down

0 comments on commit 99154e9

Please sign in to comment.