mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-13 06:41:02 +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 {
|
try {
|
||||||
// Check current bridge status
|
// Check current bridge status
|
||||||
const status = await checkBridgeStatus(api);
|
const status = await checkBridgeStatus(assetHubApi);
|
||||||
setBridgeStatus(status);
|
setBridgeStatus(status);
|
||||||
|
|
||||||
// Fetch Asset Hub USDT info
|
// Fetch Asset Hub USDT info
|
||||||
|
|||||||
Reference in New Issue
Block a user