fix bug with incorrect page
This commit is contained in:
parent
bd3e841aba
commit
3cdab1cc42
|
@ -1,6 +1,6 @@
|
|||
import { createContext, useContext, useState } from 'react';
|
||||
|
||||
const PageContext = createContext('wallet');
|
||||
const PageContext = createContext(['wallet', () => {}]);
|
||||
|
||||
export const PageProvider = ({ children }) => {
|
||||
const [page, setPage] = useState('wallet');
|
||||
|
|
Loading…
Reference in New Issue