Skip to content

Commit a43fd9c

Browse files
committed
Merge branch 'release-0.2.17' into main
2 parents 6cfb3e0 + 02dfe9a commit a43fd9c

File tree

7 files changed

+20
-14
lines changed

7 files changed

+20
-14
lines changed

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "client",
3-
"version": "0.2.16",
3+
"version": "0.2.17",
44
"private": true,
55
"proxy": "http://localhost:5000",
66
"scripts": {

client/src/components/ProjectWizard/TdmCalculationWizard.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,13 @@ const TdmCalculationWizard = props => {
155155
} else if (
156156
// Redirect to Summary Page if project exists,
157157
// but does not belong to logged-in user
158+
// Note: For an existing project, this effect
159+
// gets called once with loginId = 0 before the
160+
// component is re-created with the correct loginId,
161+
// so we only want to re-direct after the loginId
162+
// is properly set.
158163
projectId &&
164+
loginId &&
159165
!(account.isAdmin || account.id === loginId)
160166
) {
161167
history.push(`/calculation/6/${projectId}`);

client/src/contexts/Toast/Toast.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const useStyles = createUseStyles({
1414
display: "flex",
1515
justifyContent: "space-between",
1616
position: "fixed",
17-
bottom: "4em",
17+
top: "6em",
1818
cursor: "pointer"
1919
},
2020
container: {
@@ -38,7 +38,7 @@ const Toast = ({ children, remove }) => {
3838
removeRef.current = remove;
3939

4040
useEffect(() => {
41-
const duration = 5000;
41+
const duration = 8000;
4242
const id = setTimeout(() => removeRef.current(), duration);
4343

4444
return () => clearTimeout(id);

client/src/contexts/Toast/withToastProvider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import Toast from "./Toast";
66

77
const useStyles = createUseStyles({
88
root: {
9-
position: "absolute",
10-
bottom: "20px",
11-
left: "50%"
9+
alignItems: "center",
10+
display: "flex",
11+
justifyContent: "center"
1212
}
1313
});
1414

cypress/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tdm-calculator",
3-
"version": "0.2.16",
3+
"version": "0.2.17",
44
"description": "Traffic Data Management Calculator",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)