File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import {
22 autorun ,
33 entries ,
4+ IObservableArray ,
45 makeAutoObservable ,
56 observable ,
67 ObservableMap ,
@@ -28,7 +29,7 @@ export default class SwapStore {
2829 swappedChannels : ObservableMap < string , string [ ] > = observable . map ( ) ;
2930
3031 /** the ids of failed swaps that have been dismissed */
31- dismissedSwapIds : string [ ] = [ ] ;
32+ dismissedSwapIds : IObservableArray < string > = observable . array ( [ ] ) ;
3233
3334 constructor ( store : Store ) {
3435 makeAutoObservable ( this , { } , { deep : false , autoBind : true } ) ;
@@ -192,7 +193,7 @@ export default class SwapStore {
192193 const swapState = this . _store . storage . get < PersistentSwapState > ( 'swapState' ) ;
193194 if ( swapState ) {
194195 this . swappedChannels = observable . map < string , string [ ] > ( swapState . swappedChannels ) ;
195- this . dismissedSwapIds = swapState . dismissedSwapIds ;
196+ this . dismissedSwapIds = observable . array ( swapState . dismissedSwapIds ) ;
196197 this . _store . log . info ( 'loaded swapState' , swapState ) ;
197198 }
198199 }
You can’t perform that action at this time.
0 commit comments