Skip to content

Conversation

@EmilioTR
Copy link
Collaborator

closes #90

@EmilioTR EmilioTR requested a review from mvanbrab March 27, 2024 09:17
@EmilioTR EmilioTR self-assigned this Mar 27, 2024
Copy link
Collaborator

@mvanbrab mvanbrab left a comment

Choose a reason for hiding this comment

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

  • Update CHANGELOG
  • Mixing false, true and numberic values read from response.status into the same variable is bad practice. Solution; rename fetchSuccess into fetchStatus and make it an object with 2 properties (a bool success and a number responseStatus). If the bool is false and the responseStatus is 401 or 403, show the unauthorized icon. If the bool is false is and the responseStatus is something else, show the failed icon. If the bool is true, show the success icon.
  • Consider also (403, see remark above and the comment in #90)

@EmilioTR EmilioTR merged commit 7813dc9 into main Mar 27, 2024
@EmilioTR EmilioTR deleted the fix/90 branch March 27, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fetch status should have 3 possibilities: failed, unauthorized, success

3 participants