1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-20 21:39:37 +02:00

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');
}
}