Skip to content

Commit efb970d

Browse files
authored
Merge pull request #29 from MyTonSwap/develop
bugfix and improvments
2 parents 40822b9 + 438a80d commit efb970d

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

lib/store/swap.store.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ export const useSwapStore = create<SwapActions & SwapStates>((set, get) => ({
104104
pay_rate,
105105
receive_rate,
106106
} = get();
107+
108+
set(() => ({
109+
transactionHash: hash,
110+
transactionQueryId: query_id,
111+
swapModal: ModalState.IN_PROGRESS,
112+
}));
107113
useEventsStore.getState().onSwap({
108114
type: 'start',
109115
data: {
@@ -117,11 +123,6 @@ export const useSwapStore = create<SwapActions & SwapStates>((set, get) => ({
117123
hash,
118124
},
119125
});
120-
set(() => ({
121-
transactionHash: hash,
122-
transactionQueryId: query_id,
123-
swapModal: ModalState.IN_PROGRESS,
124-
}));
125126
},
126127

127128
setErrorMessage({ errorMessage, errorTitle }) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@mytonswap/widget",
33
"description": "MyTonSwap Widget - Easy to use swap widget for React on TON Blockchain",
4-
"version": "2.0.25",
4+
"version": "2.0.26",
55
"type": "module",
66
"author": {
77
"name": "MyTonSwap",

0 commit comments

Comments
 (0)