File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
autorun ,
3
3
entries ,
4
+ IObservableArray ,
4
5
makeAutoObservable ,
5
6
observable ,
6
7
ObservableMap ,
@@ -28,7 +29,7 @@ export default class SwapStore {
28
29
swappedChannels : ObservableMap < string , string [ ] > = observable . map ( ) ;
29
30
30
31
/** the ids of failed swaps that have been dismissed */
31
- dismissedSwapIds : string [ ] = [ ] ;
32
+ dismissedSwapIds : IObservableArray < string > = observable . array ( [ ] ) ;
32
33
33
34
constructor ( store : Store ) {
34
35
makeAutoObservable ( this , { } , { deep : false , autoBind : true } ) ;
@@ -192,7 +193,7 @@ export default class SwapStore {
192
193
const swapState = this . _store . storage . get < PersistentSwapState > ( 'swapState' ) ;
193
194
if ( swapState ) {
194
195
this . swappedChannels = observable . map < string , string [ ] > ( swapState . swappedChannels ) ;
195
- this . dismissedSwapIds = swapState . dismissedSwapIds ;
196
+ this . dismissedSwapIds = observable . array ( swapState . dismissedSwapIds ) ;
196
197
this . _store . log . info ( 'loaded swapState' , swapState ) ;
197
198
}
198
199
}
You can’t perform that action at this time.
0 commit comments