-
Notifications
You must be signed in to change notification settings - Fork 6
fixes in PulsePage.jsx #2442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes in PulsePage.jsx #2442
Conversation
| @@ -1,6 +1,6 @@ | |||
| import { format } from 'date-fns'; | |||
| import React, { useContext, useEffect, useState } from 'react'; | |||
| import {useHistory} from 'react-router-dom'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added spaces inside braces.
| if (res.error) throw new Error(res.error.message); | ||
|
|
||
| // Refresh browser to show that pulses where already submitted today. | ||
| history.push(location.pathname); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The push method doesn't refresh the browser, but the go method does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realize go was available in v5. Thanks!
| title="How you feeling about life outside of work?" | ||
| /> | ||
| <Button | ||
| disabled={!internalComment} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed requirement to supply internalComment.
jackkeller
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
…ing/check-ins into bugfix-pulse-report
No description provided.