Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

fix: error message for #44 #47

Merged
merged 2 commits into from
Jan 10, 2021
Merged

Conversation

yoution
Copy link
Contributor

@yoution yoution commented Jan 8, 2021

@maxceem please review for #44

Copy link
Contributor

@maxceem maxceem left a comment

Choose a reason for hiding this comment

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

There is one missing requirement and a couple of small improvements for the code.

  1. If the promise is rejected, then some error happens during Authentication. So instead of the page, we have to show an error message.

    Imagine if some error happens during authentication. To simulate it we can add throw new Error("Auth error"); inside getAuthUserTokens method:

    image

    As a result error would happen during loading. This error should be shown, but the moment empty page is show:

    image

@yoution
Copy link
Contributor Author

yoution commented Jan 9, 2021

@maxceem please review

Copy link
Contributor

@maxceem maxceem left a comment

Choose a reason for hiding this comment

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

@yoution all good now, thanks.

@maxceem maxceem merged commit 8a68e70 into topcoder-archive:dev Jan 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants