Skip to content

Refactor the ApiKeyComponent code in the dashboard #465

@vplasencia

Description

@vplasencia

Description

Every time, the functions handleRefresh and toggleIsEnabled are called, there are two requests to the Bandada API. Just one request is required, the one related to updating the info in the backend (updateApiKey), the other to get the admin information (getAdmin) shouldn't be necessary since all the info is already in the frontend.

The idea is to write the component in a way that only the updateApiKey request is sent to the Bandada API.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersrefactoring ♻️A code change that neither fixes a bug nor adds a feature

Type

No type

Projects

Status

👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions