Skip to content

Commit

Permalink
fix: showing catch error on modal when change folder
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Jan 30, 2024
1 parent 00c4397 commit 96aded6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ModalErrorSetDestGlobal = () => {
Oops! Something went wrong. Jan data folder remains the same. Please
try again.
</p>
<p>{error}</p>
<p className="text-muted-foreground">{error}</p>
<ModalFooter>
<div className="flex gap-x-2">
<ModalClose asChild onClick={() => setShow(false)}>
Expand Down
2 changes: 1 addition & 1 deletion web/screens/Settings/Advanced/DataFolder/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const DataFolder = () => {
setShowLoader(false)
setShowChangeFolderError(true)
}
}, [destinationPath, setShowChangeFolderError])
}, [destinationPath, setError, setShowChangeFolderError])

return (
<Fragment>
Expand Down

0 comments on commit 96aded6

Please sign in to comment.