Skip to content

Commit acefcde

Browse files
committed
refresh claimable state after claiming
1 parent 40a0215 commit acefcde

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/components/ClaimRewards.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<script>
2-
import WharfService, {eosBalance, rexBalance, unstakingBalances} from "$lib/wharf";
2+
import WharfService, {eosBalance, rawRexBalance, rexBalance, unstakingBalances} from "$lib/wharf";
33
import InfoRows from "$lib/components/InfoRows.svelte";
44
import GlassBox from "$lib/components/GlassBox.svelte";
55
import {commaNumber, readableNumber} from "$lib";
66
import LoadingSpinner from "$lib/components/LoadingSpinner.svelte";
77
88
9-
$: withdrawable = WharfService.withdrawableBalance();
9+
$: withdrawable = ((_) => {
10+
11+
return WharfService.withdrawableBalance();
12+
})($rawRexBalance);
1013
1114
let loading = false;
1215
const claim = async () => {

0 commit comments

Comments
 (0)