Skip to content

Commit 424cf79

Browse files
committed
Check if localstorage value exists before checking if valid uuid
1 parent fc9f510 commit 424cf79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Feedback/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function Feedback() {
2727
useEffect(() => {
2828
// UUID of feedback if it exists.
2929
const id = window.localStorage.getItem('feedbackId');
30-
if (isUUID(id)) {
30+
if (id && isUUID(id)) {
3131
setFeedbackId(id);
3232
}
3333
}, []);

0 commit comments

Comments
 (0)