mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Remove name from Toast.
This commit is contained in:
parent
a56c8d9303
commit
d739be11af
1 changed files with 2 additions and 2 deletions
|
|
@ -4,10 +4,10 @@ import { ToastType, type GameType } from '$lib/types';
|
||||||
|
|
||||||
export function addToCollection(game: GameType) {
|
export function addToCollection(game: GameType) {
|
||||||
collectionStore.add(game);
|
collectionStore.add(game);
|
||||||
toast.send(`"${game.name}" added to collection!`, { duration: 3000, type: ToastType.INFO });
|
toast.send("Added to collection", { duration: 3000, type: ToastType.INFO });
|
||||||
}
|
}
|
||||||
|
|
||||||
export function removeFromCollection(game: GameType) {
|
export function removeFromCollection(game: GameType) {
|
||||||
collectionStore.remove(game.id);
|
collectionStore.remove(game.id);
|
||||||
toast.send(`Removed "${game.name}" from collection!`, { duration: 3000, type: ToastType.INFO });
|
toast.send("Removed from collection", { duration: 3000, type: ToastType.INFO });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue