mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix UserStore
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
0d5c1fb6f7
commit
62b381e33b
@ -82,7 +82,7 @@ describe("user store tests", () => {
|
||||
const us = UserStore.getInstance();
|
||||
|
||||
us.colorTheme = "some other theme";
|
||||
await us.resetTheme();
|
||||
us.resetTheme();
|
||||
expect(us.colorTheme).toBe(UserStore.defaultTheme);
|
||||
});
|
||||
|
||||
|
||||
@ -159,8 +159,7 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
||||
}
|
||||
|
||||
@action
|
||||
async resetTheme() {
|
||||
await this.whenLoaded;
|
||||
resetTheme() {
|
||||
this.colorTheme = UserStore.defaultTheme;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user