From 1d1d36ecdca003df9a1af30369c50e146f1ae7d0 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 24 Jun 2021 19:14:15 +1000 Subject: [PATCH] Update upgrade.js --- src/upgrade.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upgrade.js b/src/upgrade.js index abfe97d..f88b107 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -633,7 +633,7 @@ export const versions = { .toCollection() .modify((state) => { for (let id in state.tokens) { - if (!state.tokens[id]) { + if (!state.tokens[id]?.tokenId) { continue; } if (!state.tokens[id].tokenId.startsWith("__default")) {