Skip to content

Commit 607d52f

Browse files
authored
fix: near balance not updated after stake with NEAR Wallet (#17)
1 parent a5743a3 commit 607d52f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/LiNEAR.jsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,9 @@ function getNearBalance(accountId, onInvalidate) {
104104
},
105105
}),
106106
};
107-
if (onInvalidate) {
108-
asyncFetch(config.nodeUrl, options).then((account) =>
109-
updateNearBalance(account, onInvalidate)
110-
);
111-
} else {
112-
updateNearBalance(fetch(config.nodeUrl, options));
113-
}
107+
asyncFetch(config.nodeUrl, options).then((account) =>
108+
updateNearBalance(account, onInvalidate)
109+
);
114110
}
115111

116112
function getLinearBalance(accountId, subscribe) {

0 commit comments

Comments
 (0)