mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 04:27:56 +00:00
fix: use assetHubApi instead of undefined api in XCMBridgeSetupModal
The checkBridgeStatus function was being called with `api` which was not defined in the component scope. Changed to use `assetHubApi` which is properly imported from PezkuwiContext. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,7 @@ export const XCMBridgeSetupModal: React.FC<XCMBridgeSetupModalProps> = ({
|
||||
|
||||
try {
|
||||
// Check current bridge status
|
||||
const status = await checkBridgeStatus(api);
|
||||
const status = await checkBridgeStatus(assetHubApi);
|
||||
setBridgeStatus(status);
|
||||
|
||||
// Fetch Asset Hub USDT info
|
||||
|
||||
Reference in New Issue
Block a user