Skip to content

Commit

Permalink
fix fetch display mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vorujack committed Mar 23, 2024
1 parent 8ef60bf commit 4d5f48c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/useInitConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ const useInitConfig = () => {
.getAllConfig()
.then((configs) => {
const config: ConfigPayload = {
display: 'simple',
display: 'advanced',
currency: 'USD',
activeWallet: -1,
};
configs.forEach((item) => {
if (
item.key === ConfigType.DisplayMode &&
item.value === 'advanced'
item.value === 'simple'
) {
config.display = 'advanced';
config.display = 'simple';
} else if (item.key === ConfigType.Currency) {
config.currency = item.value;
} else if (item.key === ConfigType.ActiveWallet) {
Expand Down

0 comments on commit 4d5f48c

Please sign in to comment.