mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 17:44:02 -05:00
refactor (#656)
This commit is contained in:
parent
6db365bf23
commit
c3f3623b6e
21 changed files with 375 additions and 221 deletions
|
|
@ -3,11 +3,11 @@ import { TauriEvent } from "models/tauriModel";
|
|||
import {
|
||||
contextStatusEventReceived,
|
||||
contextInitializationFailed,
|
||||
rpcSetBalance,
|
||||
timelockChangeEventReceived,
|
||||
approvalEventReceived,
|
||||
backgroundProgressEventReceived,
|
||||
} from "store/features/rpcSlice";
|
||||
import { setBitcoinBalance } from "store/features/bitcoinWalletSlice";
|
||||
import { receivedCliLog } from "store/features/logsSlice";
|
||||
import { poolStatusReceived } from "store/features/poolSlice";
|
||||
import { swapProgressEventReceived } from "store/features/swapSlice";
|
||||
|
|
@ -118,7 +118,7 @@ listen<TauriEvent>(TAURI_UNIFIED_EVENT_CHANNEL_NAME, (event) => {
|
|||
break;
|
||||
|
||||
case "BalanceChange":
|
||||
store.dispatch(rpcSetBalance(eventData.balance));
|
||||
store.dispatch(setBitcoinBalance(eventData.balance));
|
||||
break;
|
||||
|
||||
case "SwapDatabaseStateUpdate":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue