'Error obtain data with React and Solidity

Remix calling function

When call in my front (React)

Call on React

My code:

const checkAllowance = await contract.GetAllowance.call({
                    from: account
                }).catch((error) => {
                    errorAlert(error.message);
                });


Solution 1:[1]

The number you get from that call is a BigNumber. Try to convert it with .toString().

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Niccolò Fant