improved UX + improved performance

This commit is contained in:
daniel31x13
2024-03-10 06:08:28 -04:00
parent 3feeecdc1d
commit 4a0e75c6e5
18 changed files with 135 additions and 57 deletions
+4 -1
View File
@@ -47,7 +47,10 @@ const CollectionListing = () => {
useEffect(() => {
if (account.username) {
if (!account.collectionOrder || account.collectionOrder.length === 0)
if (
(!account.collectionOrder || account.collectionOrder.length === 0) &&
collections.length > 0
)
updateAccount({
...account,
collectionOrder: collections