Error CS0029: Cannot implicitly convert type 'UnityEngine.UI.InputField.SubmitEvent' to 'UnityEngine.UI.InputField.EndEditEvent'

for the people has this error for Q Inventory System im using unity 2022.3 to fix this error
replace the code in void Start() with this code

m_InputField.onEndEdit.AddListener(OnSubmit);

or just follow the video Q Inventory System Unity fix error