Skip to content

Commit

Permalink
make visited a boolean (#539)
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Harris <rich.harris@vercel.com>
  • Loading branch information
Rich-Harris and Rich-Harris authored Dec 14, 2023
1 parent f0cf7ad commit 76a1389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function load(+++{ cookies }+++) {
+++const visited = cookies.get('visited');+++

return {
visited
visited: visited === 'true'
};
}
```
Expand All @@ -27,7 +27,7 @@ export function load({ cookies }) {
+++cookies.set('visited', 'true', { path: '/' });+++

return {
visited
visited: visited === 'true'
};
}
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function load() {
const visited = false;
const visited = 'false';

return {
visited
visited: visited === 'true'
};
}

1 comment on commit 76a1389

@vercel
Copy link

@vercel vercel bot commented on 76a1389 Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.