Skip to content

Commit 3dd68a3

Browse files
committed
Removed unnecessary db file and unnecessary refresh.
1 parent 9162839 commit 3dd68a3

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

server/src/main/resources/db/common/V119__alter_pulse_response_team_id.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

web-ui/src/pages/PulsePage.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const PulsePage = () => {
1616
const { state } = useContext(AppContext);
1717
const currentUser = selectCurrentUser(state);
1818
const csrf = selectCsrfToken(state);
19-
const history = useHistory();
2019

2120
const [externalComment, setExternalComment] = useState('');
2221
const [externalScore, setExternalScore] = useState(center);
@@ -102,12 +101,9 @@ const PulsePage = () => {
102101
const res = await initiate(pulseURL, csrf, data);
103102
if (res.error) return;
104103

104+
setSubmittedToday(true);
105105
if (submitAnonymously) {
106-
setSubmittedToday(true);
107106
Cookies.set(cookieName, 'true', { expires: 1 });
108-
} else {
109-
// Refresh browser to show that pulses where already submitted today.
110-
history.go(0);
111107
}
112108
};
113109

0 commit comments

Comments
 (0)