Skip to content

Commit

Permalink
dev(auth): wallet name is readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Sep 29, 2023
1 parent 99d5f5c commit 2447efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context/WalletContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -203,7 +203,7 @@ const toWalletInfo = (data: CombinedRawWalletData): WalletInfo => {
const toCombinedRawData = (utxos: UtxosResponse, display: WalletDisplayResponse) => ({ utxos, display })

const WalletProvider = ({ children }: PropsWithChildren<any>) => {
const [currentWallet, setCurrentWalletOrNull] = useState(restoreWalletFromSession())
const [currentWallet, setCurrentWalletOrNull] = useState(restoreWalletFromSession)

const setCurrentWallet = useCallback(
(wallet: CurrentWallet) => {
Expand Down

0 comments on commit 2447efb

Please sign in to comment.