chore: Update CollectionCard component to display correct toast message when archiving/unarchiving a collection

This commit is contained in:
Sean Morley
2024-08-07 17:36:25 -04:00
parent 14e4a5c86d
commit 879b182e56
2 changed files with 23 additions and 3 deletions

View File

@@ -37,10 +37,10 @@
});
if (res.ok) {
console.log(`Collection ${is_archived ? 'archived' : 'unarchived'}`);
addToast('info', `Adventure ${is_archived ? 'archived' : 'unarchived'} successfully!`);
addToast('info', `Collection ${is_archived ? 'archived' : 'unarchived'} successfully!`);
dispatch('delete', collection.id);
} else {
console.log('Error archiving adventure');
console.log('Error archiving collection');
}
}