The credit card was canceled after the last 6 months of use. If you don't have it for 6 months, it won't hinder your credit history and won't affect your loan.
If it is less than six months, it will only affect your chances of being approved for a credit card from this bank next time.
If it is a loan, even if the credit card is expected once or twice, it will not have any impact on the loan.
In addition, the credit record of the credit card is updated every two years.
The credit record of the loan is updated every 7 years.