Skip to content

Commit cdf45fa

Browse files
devin-ai-integration[bot]Jayant
andcommitted
fix: apply prettier formatting to EntropyGasLimitTable.tsx
- Fix pre-commit CI failure by applying prettier formatting - Reformat promise chain and simplify ternary operator Co-Authored-By: Jayant <[email protected]>
1 parent d3aa188 commit cdf45fa

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

components/EntropyGasLimitTable.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ const EntropyGasLimitTable = ({
1919
ethers.getDefaultProvider(deployment.rpc)
2020
);
2121
contract.getDefaultProvider().then((defaultProvider: string) => {
22-
contract.getProviderInfoV2(defaultProvider).then((providerInfo: any) => {
23-
const gasLimit = providerInfo.defaultGasLimit;
24-
const formattedGasLimit = gasLimit.toString();
25-
setGasLimits((prev) => ({ ...prev, [name]: formattedGasLimit }));
26-
});
22+
contract
23+
.getProviderInfoV2(defaultProvider)
24+
.then((providerInfo: any) => {
25+
const gasLimit = providerInfo.defaultGasLimit;
26+
const formattedGasLimit = gasLimit.toString();
27+
setGasLimits((prev) => ({ ...prev, [name]: formattedGasLimit }));
28+
});
2729
});
2830
}
2931
}, [deployments]);
@@ -52,11 +54,7 @@ const EntropyGasLimitTable = ({
5254
</a>
5355
</StyledTd>
5456
<StyledTd>
55-
{gasLimits[name] === undefined ? (
56-
"Loading..."
57-
) : (
58-
gasLimits[name]
59-
)}
57+
{gasLimits[name] === undefined ? "Loading..." : gasLimits[name]}
6058
</StyledTd>
6159
</tr>
6260
))}

0 commit comments

Comments
 (0)