Skip to content

Commit 4e913c9

Browse files
committed
fix: remove extra isSuccess check
1 parent 1ac219d commit 4e913c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/main/src/dex/components/PageCreatePool/hooks/useAutoDetectErc4626.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const useAutoDetectErc4626 = ({ tokenId, address }: UseAutoDetectErc4626P
2626
}
2727

2828
// Only auto-set ngAssetType on first successful detection (don't override user's choice)
29-
if (isErc4626 && isSuccess && !statusAlreadySet) {
29+
if (isErc4626 && !statusAlreadySet) {
3030
updateNgAssetType(tokenId, NG_ASSET_TYPE.ERC4626)
3131
}
3232
}, [tokenId, isErc4626, isSuccess, isLoading, error, updateNgAssetType, updateTokenErc4626Status, statusAlreadySet])

0 commit comments

Comments
 (0)