Skip to content

Commit

Permalink
chore(web): fix atoms names
Browse files Browse the repository at this point in the history
  • Loading branch information
artalar authored Oct 14, 2024
1 parent 7f4e0c1 commit 7be623d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/online.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ type OnlineAtom = Atom<boolean> & {
export const createOnlineAtom = (): OnlineAtom => {
const onlineAtom = atom(navigator.onLine, 'onLine')
.pipe(withAssign(() => ({
offlineAtAtom: atom<number | undefined>(undefined),
onlineAtAtom: atom<number | undefined>(undefined),
offlineAtAtom: atom<number | undefined>(undefined, 'onLine.offlineAtAtom'),
onlineAtAtom: atom<number | undefined>(undefined, 'onLine.onlineAtAtom'),
})))

onConnect(onlineAtom, (ctx) => {
Expand Down

0 comments on commit 7be623d

Please sign in to comment.