Allowance returns zero while staking in pancakeswap

While forking pancakeswap we are trying to stake some LP tokens. The steps that we are trying to perform from the ui are enable-> approve tokens → enter staking. However, after approving we don’t get the staking option as allowance is returned as zero. The line 48 of this file returns false as a result.

The staking function that we are calling is in the master chef contract.

I think just check which contract you have approved.

It seems like you want to stake your LP token, so I think it should be