TypeError: nftContract.methods.mintNFT is not a function

contract is successfully deployed to ropsten but when i try to mint nft it shows me following error please help me out below is my code

// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.5.0 < 0.9.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract MyNFT is ERC721URIStorage , Ownable{

    using Counters for Counters.Counter;

    Counters.Counter private _tokenIds;

    constructor() ERC721 ("Punk","PK") {}

    function mintNFt(address recipient, string memory tokenURI) public onlyOwner returns(uint256){
        _tokenIds.increment();
    
        uint256 newItemId=_tokenIds.current();
        _mint(recipient,newItemId);
        _setTokenURI(newItemId,tokenURI);

        return newItemId;
    }
}

Your function is called mintNFt, and not mintNFT.