Skip to content

Commit

Permalink
fix: Jump back to profile after save time preferences.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Oct 17, 2024
1 parent 16b3449 commit 312b393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/data/useTimePreferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const useTimePreferences = () => {
const savePreferences = async () => {
try {
await saveTimePreferences(userId, selectedTimes);
navigate(`/profile/${userId}`);
} catch (err) {
console.error('Failed to save time preferences');
}
Expand Down

0 comments on commit 312b393

Please sign in to comment.