Skip to content

Commit

Permalink
Resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
razvantomegea committed Apr 3, 2024
1 parent ef05a29 commit 0d1e008
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/apiCalls/configuration/useGetServerConfigurationFromApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ export const useGetServerConfigurationFromApi = () => {

const egldDenomination = 'egldDenomination';

if (egldDenomination in data) {
const {
[egldDenomination]: decimals,
decimals: digits,
...rest
} = data as NetworkType & {
[egldDenomination]: string;
};

const networkConfig: NetworkType = {
...rest,
decimals,
digits
};

return networkConfig;
if (!(egldDenomination in data)) {
return data;
}

return data;
const {
[egldDenomination]: decimals,
decimals: digits,
...rest
} = data as NetworkType & {
[egldDenomination]: string;
};

const networkConfig: NetworkType = {
...rest,
decimals,
digits
};

return networkConfig;
};

0 comments on commit 0d1e008

Please sign in to comment.