Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Only use the last selected flavor if it is supported #5212

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

jeffsmale90
Copy link
Contributor

When loading the home screen, the previously selected flavor is always selected by default - for instance, if the user last started a "Filecoin" workspace, then the "Filecoin" flavor would be selected.

Before to this change, if the previously selected flavor was no longer supported (ie "Corda"), it would still be selected. Starting the workspace would cause an error "Workspace not found" to be thrown.

This change causes the default ("Ethereum") workspace to be selected if the previously selected flavor is no longer supported.

@jeffsmale90
Copy link
Contributor Author

I'd love to be writing tests for these changes, but the codebase is not set up to support this. Once this release goes out I'll be looking to improve on the test automation for the project.

@jeffsmale90 jeffsmale90 changed the title Only use the last selected flavor if it is a valid flavor Only use the last selected flavor if it is supported Jan 15, 2023
@jeffsmale90 jeffsmale90 merged commit 2b4e426 into develop Jan 24, 2023
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