Skip to content

Commit

Permalink
Fix theme
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Sep 13, 2021
1 parent 840957a commit f38633d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default class Root extends React.Component<{}, IState> {
}

init = async () => {
UserPreferences.getMapAsync(THEME_PREFERENCES_KEY).then(() => this.setTheme());
UserPreferences.getMapAsync(THEME_PREFERENCES_KEY).then((theme: any) => this.setTheme(theme));
store.dispatch(appInitLocalSettings());

// Open app from push notification
Expand Down
2 changes: 1 addition & 1 deletion app/share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class Root extends React.Component<{}, IState> {
}

init = async () => {
UserPreferences.getMapAsync(THEME_PREFERENCES_KEY).then(() => this.setTheme());
UserPreferences.getMapAsync(THEME_PREFERENCES_KEY).then((theme: any) => this.setTheme(theme));

const currentServer = await UserPreferences.getStringAsync(RocketChat.CURRENT_SERVER);

Expand Down

0 comments on commit f38633d

Please sign in to comment.