diff --git a/src/context/WalletContext.tsx b/src/context/WalletContext.tsx index 89725e9f..90f96c5d 100644 --- a/src/context/WalletContext.tsx +++ b/src/context/WalletContext.tsx @@ -13,7 +13,7 @@ export interface CurrentWallet { } class CurrentWalletImpl implements CurrentWallet { - name: Api.WalletName + readonly name: Api.WalletName #token: Api.ApiToken constructor(name: Api.WalletName, token: Api.ApiToken) { @@ -203,7 +203,7 @@ const toWalletInfo = (data: CombinedRawWalletData): WalletInfo => { const toCombinedRawData = (utxos: UtxosResponse, display: WalletDisplayResponse) => ({ utxos, display }) const WalletProvider = ({ children }: PropsWithChildren) => { - const [currentWallet, setCurrentWalletOrNull] = useState(restoreWalletFromSession()) + const [currentWallet, setCurrentWalletOrNull] = useState(restoreWalletFromSession) const setCurrentWallet = useCallback( (wallet: CurrentWallet) => {