Skip to content

Commit

Permalink
Fix bug where camera was renammed in store even if request failed
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Jul 21, 2023
1 parent 46def0d commit 9498b0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const checkCameraName = (name: string): string | boolean => {
return true;
};
const saveCameraNameEdit = (newName: string) => {
useCameraSettingsStore().changeCameraNickname(newName)
useCameraSettingsStore().changeCameraNickname(newName, false)
.then(response => {
useStateStore().showSnackbarMessage({
color: "success",
Expand Down

0 comments on commit 9498b0a

Please sign in to comment.