Skip to content

Commit 2b7d008

Browse files
committed
chore: dont use in syntax
1 parent 05f4190 commit 2b7d008

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/sdk-react-provider/src/lib/hooks.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,9 +986,10 @@ export function usePlaceOrder({
986986
queryKey: keys.getOrders(),
987987
});
988988
// Only invalidate balances if we got a full Order response (not a 202 multi-sig response)
989-
if ('address' in data && 'chain' in data) {
989+
const orderData = data as Order;
990+
if (orderData.address && orderData?.chain) {
990991
queryClient.invalidateQueries({
991-
queryKey: keys.getBalances(data.address, data.chain),
992+
queryKey: keys.getBalances(orderData.address, orderData.chain),
992993
});
993994
}
994995
// Allow the caller to add custom logic on success.

0 commit comments

Comments
 (0)