Skip to content

Commit 06ee4c0

Browse files
committed
updated migration
1 parent 1260130 commit 06ee4c0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/scripts/migrations/078.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ export default {
1818
};
1919

2020
function transformState(state) {
21-
if (state?.AppStateController?.collectiblesDetectionNoticeDismissed) {
21+
if (
22+
state?.AppStateController?.collectiblesDetectionNoticeDismissed !==
23+
undefined
24+
) {
2225
delete state.AppStateController.collectiblesDetectionNoticeDismissed;
2326
}
24-
if (state?.metamask?.collectiblesDropdownState) {
27+
if (state?.metamask?.collectiblesDropdownState !== undefined) {
2528
delete state.metamask.collectiblesDropdownState;
2629
}
2730
return state;

0 commit comments

Comments
 (0)