Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Fix own course and resource votes not getting shown #284

Merged
merged 3 commits into from Dec 19, 2020
Merged

Conversation

ruohola
Copy link
Member

@ruohola ruohola commented Dec 18, 2020

`initialVote` always contained the vote, but not on first render of the
component, so `useState()` returned `null` to `currentVote`, and it then
just stayed like that.
@ruohola ruohola force-pushed the no-login-verify branch 2 times, most recently from 1b3e64f to 78e948b Compare December 18, 2020 12:22
@ruohola ruohola requested a review from blomqma December 18, 2020 12:28
blomqma
blomqma previously approved these changes Dec 18, 2020
@ruohola ruohola force-pushed the no-login-verify branch 2 times, most recently from c5f26c7 to f309eb3 Compare December 18, 2020 19:44
@ruohola ruohola requested a review from blomqma December 18, 2020 19:44
@ruohola ruohola force-pushed the no-login-verify branch 2 times, most recently from 91b3e8f to a25a2d1 Compare December 18, 2020 19:46
package.json Outdated Show resolved Hide resolved
RUN yarn build

CMD ["yarn", "start"]
# Get rid of all dev dependencies.
RUN yarn install --production --ignore-scripts --prefer-offline
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json Show resolved Hide resolved
Remove dev dependencies and all unnecessary stuff from the prod build.

Also set the NODE_ENV env variable, which should for example should hide
the 'SW Registered' console log.
@ruohola ruohola merged commit 1764ab7 into develop Dec 19, 2020
@ruohola ruohola deleted the no-login-verify branch December 19, 2020 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants