Skip to content

Commit 6fa55e9

Browse files
committed
fix: account type
1 parent 85fafbe commit 6fa55e9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/app-portal/src/systems/Bridge/hooks/useBridge.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const selectors = {
3030
assetBalance,
3131
}: {
3232
ethAccount?: string;
33-
fuelAccount?: string;
33+
fuelAccount?: string | null;
3434
assetBalance?: BN;
3535
}) =>
3636
(state: BridgeMachineState) => {
@@ -223,7 +223,6 @@ export function useBridge() {
223223
store.startBridging({
224224
fuelAddress,
225225
ethWalletClient,
226-
fuelWallet,
227226
fuelProvider,
228227
ethAddress,
229228
asset,

packages/app-portal/src/systems/Chains/fuel/hooks/useFuelAccountConnection.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ export const useFuelAccountConnection = (props?: { assetId?: string }) => {
5353
closeDialog: store.closeOverlay,
5454
addAsset,
5555
},
56-
account,
56+
account: account || undefined,
5757
address,
5858
isConnected: !!account,
5959
error,
6060
isLoadingConnection,
6161
isConnecting,
6262
provider: fuelProvider,
6363
balance,
64-
wallet,
64+
wallet: wallet || undefined,
6565
};
6666
};

0 commit comments

Comments
 (0)