Skip to content

Commit 9e06daf

Browse files
committed
chore: cleanup
1 parent e2dc20d commit 9e06daf

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

apps/namadillo/src/App/AppRoutes.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,9 @@ export const MainRoutes = (): JSX.Element => {
101101
</Route>
102102

103103
{/* Swapping */}
104-
{true && (
105-
<>
106-
<Route path={routes.swap} element={<SwapModule />} />
107-
</>
108-
)}
104+
<>
105+
<Route path={routes.swap} element={<SwapModule />} />
106+
</>
109107

110108
{/* Transaction History */}
111109
{(features.namTransfersEnabled || features.ibcTransfersEnabled) && (

apps/namadillo/src/App/Swap/SwapCalculations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export const SwapCalculations = (): JSX.Element => {
173173
);
174174

175175
useEffect(() => {
176-
// Because of the current bug with connectedWallets, this prevents button flash
176+
// This prevents button flash
177177
const handler = setTimeout(() => {
178178
setShowConnectToWalletButton(!walletAddress);
179179
}, 500);

apps/namadillo/src/App/Swap/SwapSource.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const amountMaxDecimalPlaces = (asset?: Asset): number | undefined => {
2727
}
2828
}
2929
}
30-
return undefined;
30+
return;
3131
};
3232

3333
export const SwapSource = ({

apps/namadillo/src/App/Swap/state/atoms.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ import { SwapStatus } from "./types";
2020

2121
const swapStorageAtom = atomWithStorage<SwapStorage>(
2222
"namadillo:swap",
23-
{
24-
assetSymbolBuy: undefined,
25-
assetSymbolSell: undefined,
26-
},
23+
{},
2724
undefined,
2825
{ getOnInit: true }
2926
);

apps/namadillo/src/atoms/balance/services.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ export const fetchShieldedRewards = async (
114114
const sdk = await getSdkInstance();
115115
const worker = new MaspTxWorker();
116116
const workerLink = Comlink.wrap<MaspTxWorkerApi>(worker);
117-
console.log("initiating worker2");
118117
await workerLink.init({
119118
type: "init",
120119
payload: { rpcUrl, token: sdk.nativeToken, maspIndexerUrl: "" },
@@ -142,7 +141,6 @@ export const fetchShieldedRewardsPerToken = async (
142141
const sdk = await getSdkInstance();
143142
const worker = new MaspTxWorker();
144143
const workerLink = Comlink.wrap<MaspTxWorkerApi>(worker);
145-
console.log("initiating worker3");
146144
await workerLink.init({
147145
type: "init",
148146
payload: { rpcUrl, token: sdk.nativeToken, maspIndexerUrl: "" },

apps/namadillo/src/lib/query.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ export const signTx = async <T>(
153153

154154
const store = getDefaultStore();
155155
const { data: chainParameters } = store.get(chainParametersAtom);
156-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
157156
const checksums = chainParameters?.checksums;
158157

159158
try {

0 commit comments

Comments
 (0)