Apple Health App duplicate data entries
I am using myfitnesspal to keep a food diary and having just started using it again I've noticed that there are double entries being saved in the Apple Health data source list which is doubling the values being shown in Apple Health. There is only one entry in myfitnesspal for breakfast but two in Apple Health for the same values except they are a few minutes apart. Why are there double entries and how can they be prevented?
iPhone 6s Plus, iOS 11.2.6