diff --git a/src/components/Rightbar.tsx b/src/components/Rightbar.tsx index 1f1588f..62d05b0 100644 --- a/src/components/Rightbar.tsx +++ b/src/components/Rightbar.tsx @@ -53,7 +53,7 @@ export const Rightbar = () => { const handleSave = debounce(() => saveBasket(userID), 500); return ( - {isSavingLoading ? : "ZAPISZ"} + {!isSavingLoading && handleSave() }}> {isSavingLoading ? : "ZAPISZ"} {basketCourses.map((course) => ( ))}