Skip to content

Commit dfb5e1f

Browse files
cleaning code
1 parent 171f20d commit dfb5e1f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

examples/wallet/app/utils/nodeConnection.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,9 @@ export function getAccountState(identifier: Identifier): Promise<AccountState> {
3939
}))
4040
.catch(error => {
4141
if (error && error.response && error.response.status === 404) {
42-
const hardcoded = {
43-
hardBalance: 0,
44-
hardCounter: 0,
45-
hardDelegation: { '00000x': { parts: 1 } }
46-
};
47-
const balance: Balance = hardcoded.hardBalance;
48-
const counter: Counter = hardcoded.hardCounter;
49-
const delegation: Delegation = hardcoded.hardDelegation;
42+
const balance: Balance = 0;
43+
const counter: Counter = 0;
44+
const delegation: Delegation = { '00000x': { parts: 1 } };
5045
return {
5146
balance,
5247
counter,

0 commit comments

Comments
 (0)